可能重複:
Is there a clean way to prevent windows.h from creating a near & far macro?的#define遠,近的#define WINDEF.H
是什麼在WINDEF.H這兩個定義的呢?
#define far /* nothing */
#define near /* nothing */
我知道它與near and far指針和他們不再使用的事實做,但是,它安全#undef
他們,所以我可以在我的代碼使用near
和far
爲函數和變量名?
或者,我應該簡單地避免它,從不使用near
和far
作爲標識符?
而80286機器重45磅! – bobobobo 2013-05-30 15:27:55