RE: [Plib-users] config.h
Brought to you by:
sjbaker
From: Norman V. <nh...@ca...> - 2001-01-22 17:40:03
|
Sam Stickland writes: >Norman Vine wrote:" >> > >> >I thought the Windoze compilers did that automatically. >> >> AFAIK all Windows compilers define _WIN32 < notice underbar > >> > >Well I just checked MSVC++ and it makes these preprocessor definations > >WIN32,_DEBUG,_CONSOLE,_MBCS > >Notice that the WIN32 has no underscore? What a pain... Sam could you please try this simple test program ------------- #include <stdio.h> int main( int argc, char **argv ) { #ifdef _WIN32 printf("_WIN32 found\n"); #endif #ifdef WIN32 printf("WIN32 found\n"); #endif #if !defined( _WIN32 ) && !defined( WIN32 ) printf("Neither _WIN32 or WIN32 found\n"); #endif return 0; } |