]> git.mxchange.org Git - flightgear.git/blobdiff - src/WeatherCM/FGWeatherVectorWrap.h
Moved some of the low level scene graph construction code over to simgear.
[flightgear.git] / src / WeatherCM / FGWeatherVectorWrap.h
index 76b3f95fd26a0650ced0c2a232a2cd75b700adfb..68f47fcb616fcb89901c25b8c1e54e80769dd607 100644 (file)
@@ -32,6 +32,8 @@ HISTORY
 18.10.1999 Christian Mayer     Created
 19.10.1999 Christian Mayer     change to use PLIB's sg instead of Point[2/3]D
                                and lots of wee code cleaning
+21.12.1999 Christian Mayer     Added a fix for compatibility to gcc 2.8 which
+                               suggested by Oliver Delise
 *****************************************************************************/
 
 /****************************************************************************/
@@ -48,12 +50,18 @@ HISTORY
 /****************************************************************************/
 /* DEFINES                                                                 */
 /****************************************************************************/
+#if ( __GNU_C__ == 2 && __GNU_MAJOR__ < 9 )
+#  define const_sgVec2 const sgVec2
+#else
+#  define const_sgVec2 const sgVec2&
+#endif
+
 struct sgVec2Wrap
 {
     sgVec2 p;
 
     sgVec2Wrap();
-    sgVec2Wrap( const sgVec2& src ) { sgCopyVec2( p, src ); }
+    sgVec2Wrap( const_sgVec2 src ) { sgCopyVec2( p, src ); }
 };
 
 #endif /*FGWeatherVectorWrap_H*/