高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】win32 Or -win32
win32 or _win32?
win32 or _win32?
i'm trying to understand the usage of the win32 and _win32 macros in dwgdirect. i'm specifically interested in odfilebuf.
i know that _win32 is defined internally by vc. i also see that win32 is defined by a compiler option in the project i am working on.
are these two symbols used interchangeably in the dwgdirect code? or are they used to differentiate between platforms somehow?
should i perhaps not be defining win32?
thanks,
-jimc
odfilebuf has 2 implementations: windows (using windows specific functions providing proper file locking etc.) and cross-platform (using ansi functions).
win32 symbol is used instead of _win32 to provide ability to debug cross-platform code on windows.
sergey slezkin
|