GP32 Compilers Recognition


Oankali

Member
Joined
Jan 5, 2004
Messages
133
Age
56
Location
Andorra
Website
www.nekanium.com
Actually to compile correctly my OKF Font Engine yoy must use this compiler option in GCC: -mstructure-size-boundary=8
That means that all structures in the programa are 8 bit packed. That's not the best way.
So I have found the in source compiler options (__attribute__ ((__packed__)) for GCC and #pragma pack for VC++).
The problem is that I know how to recognize when I'm compiling for GCC testing for __GNUC__ define, but I don't know how to recognize the VC++ compiler. I could use WIN32 define, but I think that's not a compiler define but more an environment define.

Any help would be appreciated.
 
Back
Top