From: Stephen J B. <sj...@li...> - 2003-12-16 20:09:55
|
Nigel Stewart and Fiona Smith wrote: > >> The change to CVS would be to surround the three blocks >> of #pragma in freeglut_std.h with the apprioriate #ifdef >> tests. > > > There is also a pragma in freeglut_window.c > > 167: #pragma message( "fgSetupPixelFormat(): there is still some work to > do here!" ) We shouldn't use #pragma - it's completely system dependent...even if it's within an #if 0 block. There was once a version of gcc which started a game of NetHack whenever it encountered a #pragma. Such behaviour is perfectly within the specification of the C language. ----------------------------------------------------------------------- The second law of Frisbee throwing states: "Never precede any maneuver by a comment more predictive than "Watch this!"...it turns out that this also applies to writing Fragment Shaders. ----------------------------------------------------------------------- Steve Baker (817)619-2657 (Vox/Vox-Mail) L3Com/Link Simulation & Training (817)619-2466 (Fax) Work: sj...@li... http://www.link.com Home: sjb...@ai... http://www.sjbaker.org |