[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SV: config.h
>>PenguinPlay/PenguinPlay.h includes PenguinPlay/config.h. The problem is
>>that this file doesn't exist. I realise its supposed to be generated
>>automaticly (autoconf?), but this doesn't happen on Win32. It should be
>>there, so that Win32 compilers don't throw a "fatal error: can't include
>>...".
>
>Ok, I attached a config.h generated by autoconf on _my_ machine under
>Linux.
>Is there some symbol WIN32 or so that's defined by all win32 compilers?
>Then we can do a
>#ifdef WIN32
># include <PenguinPlay/config_win32.h>
>#else
># include <PenguinPlay/config.h>
>#endif
>
Well, MS VC++ defines the symbol _WIN32. I don't know about other compilers.