|
|

楼主 |
发表于 2005-12-19 17:49:03
|
显示全部楼层
this seems to be exactly what i need
Post by whistlerwmz
#ifdef _WIN32
// Windows-specific code goes here
#else
// non-Windows-specific code goes here
#endif
或者也可以将平台有关的代码写到不同的文件中,使用同样的函数名,然后在不同的平台下编译不同的代码即可
那unix是啥宏呢?(需要与mac什么的区分吧) |
|