X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fxgl%2FxglUtils.c;h=9fb05be16dfc376886d4c988a98e23ad961325c0;hb=3f0efc2a6fd5cd9076c78da7a32b119343d8b72e;hp=4af679dcfb788d8a6d49337bd61b6123d35a977c;hpb=b9593adc7cef94081024c06ef83481c92b673abd;p=simgear.git diff --git a/simgear/xgl/xglUtils.c b/simgear/xgl/xglUtils.c index 4af679dc..9fb05be1 100644 --- a/simgear/xgl/xglUtils.c +++ b/simgear/xgl/xglUtils.c @@ -6,7 +6,10 @@ #if !defined( WIN32 ) # if !defined( HAVE_STL_SGI_PORT ) && !defined( __MWERKS__ ) && !defined( __APPLE__ ) // Avoid malloc with STLport and MSL -# include +# ifdef HAVE_MALLOC_H +// Avoid malloc if system doesn't have it. :-) +# include +# endif # endif #endif