I am compiling my program that will run on linux gcc 4.4.1 C99.
I just put my #defines to separate the code to be compiled on Windows or Linux. However, I got this error.
error: macro names must be identifiers.
Using this code
#ifdef(WIN32) #endif
However, when I changed this, the error was fixed:
#if defined(WIN32) #endif
I'm just wondering why I got this error and why #defines are different?
Thank you very much,
c
ant2009 Nov 11 '09 at 10:09 2009-11-11 10:09
source share