[fpc-devel] Issue with Critical sections

Sergei Gorelkin sergei_gorelkin at mail.ru
Wed Apr 4 12:33:28 CEST 2007


Hello,

I was porting to Linux some Windows code which uses critical
sections API, and got 'Identifier not found' error on InitializeCriticalSection and
DeleteCriticalSection symbols. After searching through RTL code, I
discovered that abovementioned functions are named InitCriticalSection
and DoneCriticalSection. At the same time, the EnterCriticalSection
and LeaveCriticalSection are not renamed, so code using them compiles
without errors. Why this inconsistency? Should I supply a patch that
adds Initialize/DeleteCriticalSection as aliases for
Init/DoneCriticalSection?

Regards,
Sergei





More information about the fpc-devel mailing list