X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fcompiler.h;h=3af548df6ecf67c9a7ee8e25113ecf9bb08f2ee7;hb=430ba60b3364735a39ba7d6fbfc9765c18f50074;hp=9123ab19729285723002a510378ddf1fefd99e65;hpb=86e83faef3a983f09e7d07dcaf1e35a0ba54ded9;p=simgear.git diff --git a/simgear/compiler.h b/simgear/compiler.h index 9123ab19..3af548df 100644 --- a/simgear/compiler.h +++ b/simgear/compiler.h @@ -121,7 +121,7 @@ # define STL_STRSTREAM # endif -# elif __GNUC__ == 3 +# elif __GNUC__ >= 3 // g++-3.0.x # define SG_EXPLICIT_FUNCTION_TMPL_ARGS # define SG_NEED_AUTO_PTR @@ -336,7 +336,9 @@ extern void *memmove(void *, const void *, size_t); # endif // __cplusplus -# define SG_COMPILER_STR "Sun compiler version " SG_STRINGIZE(__SUNPRO_CC) +# if !defined( __GNUC__ ) +# define SG_COMPILER_STR "Sun compiler version " SG_STRINGIZE(__SUNPRO_CC) +# endif #endif // sun @@ -364,6 +366,25 @@ #endif // __ICC +// +// Platform dependent gl.h and glut.h definitions +// + +#ifdef __APPLE__ +# define SG_GL_H +# define SG_GLX_H +# define SG_GLU_H +# define SG_GLEXT_H +# define SG_GLUT_H +#else +# define SG_GL_H +# define SG_GLX_H +# define SG_GLU_H +# define SG_GLEXT_H +# define SG_GLUT_H +#endif + + // // No user modifiable definitions beyond here. //