查看单个帖子
旧 2009-05-07, 07:15 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)