]> git.mxchange.org Git - simgear.git/commitdiff
Merge FreeBSD patches.
authorJames Turner <zakalawe@mac.com>
Tue, 11 Nov 2014 22:29:24 +0000 (22:29 +0000)
committerJames Turner <zakalawe@mac.com>
Tue, 11 Nov 2014 22:29:24 +0000 (22:29 +0000)
Taken from:
http://svnweb.freebsd.org/ports/head/devel/simgear/files/

CMakeLists.txt
simgear/canvas/ShivaVG/src/shDefs.h
simgear/debug/BufferedLogCallback.cxx

index 336e54c47398976e2da5627a4416d2d3d9c759a4..1bb303f7c91ba96bdeecbac6a7fb132441a286d6 100644 (file)
@@ -276,12 +276,12 @@ SET(CMAKE_MINSIZEREL_POSTFIX "" CACHE STRING "add a postfix, usually empty on wi
 # isnan might not be real symbol, so can't check using function_exists
 check_cxx_source_compiles(
     "#include <cmath> 
-    void f() { isnan(0.0);} "
+    int main() { return isnan(0.0);} "
     HAVE_ISNAN)
 
 check_cxx_source_compiles(
     "#include <cmath> 
-    void f() { std::isnan(0.0);} "
+    int main() { return std::isnan(0.0);} "
     HAVE_STD_ISNAN)
 
 if(CMAKE_COMPILER_IS_GNUCXX)
index 1f710be313dad9a1d67f7385e94662a404a200b2..ea012b200107b904a8cd0789375ea124ef8c688d 100644 (file)
@@ -156,7 +156,7 @@ SHfloat getMaxFloat();
 
 /* OpenGL headers */
 
-#if defined(VG_API_LINUX)
+#if defined(VG_API_LINUX) || defined(VG_API_FREEBSD)
     #include <GL/gl.h>
     #include <GL/glx.h>
 #elif defined(VG_API_MACOSX)
index e1a38ff35a3ee0a7bd698ad613658cee18b10bae..0e35bce056f17b19bebcf8d2303c29b0dd36a2fa 100644 (file)
@@ -26,6 +26,8 @@
 #include <simgear/sg_inlines.h>
 #include <simgear/threads/SGThread.hxx>
 #include <simgear/threads/SGGuard.hxx>
+
+#include <cstdlib> // for malloc
      
 namespace simgear
 {