Re: [Plib-users] config.h
Brought to you by:
sjbaker
From: Sam S. <sa...@sp...> - 2001-01-22 14:40:07
|
----- Original Message ----- From: "Norman Vine" <nh...@ca...> To: <pli...@li...> Sent: Sunday, January 21, 2001 5:43 PM Subject: [Plib-users] config.h > < changing the subject header for archival purposes > > was 'RE: [Plib-users] joystick library' > > Steve Baker writes: > > > >Norman Vine wrote: > > > >> This should make a my_js_dem0.exe > >> c++ -o my_js_demo -DWIN32 js_demo.cxx -lwinmm -lplibul > >> > >> I do not like having to define WIN32 to make this work > > > >I thought the Windoze compilers did that automatically. > > AFAIK all Windows compilers define _WIN32 < notice underbar > > > PLib using WIN32 is I believe a carryover from the FlightGear world. > When they started using it I do not know < before I arrived though > 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... Guess the config.h file would have to have something like: #if defined(_WIN32) && !defined(WIN32) #define WIN32 #endif ? Sam |