X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fcompiler.h;h=3af548df6ecf67c9a7ee8e25113ecf9bb08f2ee7;hb=430ba60b3364735a39ba7d6fbfc9765c18f50074;hp=ec05e881d3844907b6eb7e6e7bdc173dbdfc3d52;hpb=fb0dded10382fefab9c32aa57a8da04ec18d814b;p=simgear.git diff --git a/simgear/compiler.h b/simgear/compiler.h index ec05e881..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 @@ -370,11 +372,13 @@ #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