[Plib-users] config.h
Brought to you by:
sjbaker
From: Norman V. <nh...@ca...> - 2001-01-22 01:45:52
|
< 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 > We could go through the code and change all WIN32 to _WIN32 and see if that worked. We of course would still have the occasional #if defined(_WIN32) && !defined(__CYGWIN__) where we really want Unix behaviour when using Cygwin Any comments anyone on my just doing this ??? >> What do folks think of having the make install command >> create a <plib/config.h> that contains the -Defines used when plib was >> compiled >> <plib/config.h> would then be include by our other headers > >Sure - that's something that autoconf is able to do...I forget how >exactly... I think it is fairly easy todo but I have never done it. Have we got amy autoconfig gurus on the list ? Cheers Norman Vine |