From: James Turner Date: Tue, 11 Nov 2014 22:29:24 +0000 (+0000) Subject: Merge FreeBSD patches. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1b7f310ea67c35ead662fa1af0deed482653a751;p=simgear.git Merge FreeBSD patches. Taken from: http://svnweb.freebsd.org/ports/head/devel/simgear/files/ --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 336e54c4..1bb303f7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 - void f() { isnan(0.0);} " + int main() { return isnan(0.0);} " HAVE_ISNAN) check_cxx_source_compiles( "#include - void f() { std::isnan(0.0);} " + int main() { return std::isnan(0.0);} " HAVE_STD_ISNAN) if(CMAKE_COMPILER_IS_GNUCXX) diff --git a/simgear/canvas/ShivaVG/src/shDefs.h b/simgear/canvas/ShivaVG/src/shDefs.h index 1f710be3..ea012b20 100644 --- a/simgear/canvas/ShivaVG/src/shDefs.h +++ b/simgear/canvas/ShivaVG/src/shDefs.h @@ -156,7 +156,7 @@ SHfloat getMaxFloat(); /* OpenGL headers */ -#if defined(VG_API_LINUX) +#if defined(VG_API_LINUX) || defined(VG_API_FREEBSD) #include #include #elif defined(VG_API_MACOSX) diff --git a/simgear/debug/BufferedLogCallback.cxx b/simgear/debug/BufferedLogCallback.cxx index e1a38ff3..0e35bce0 100644 --- a/simgear/debug/BufferedLogCallback.cxx +++ b/simgear/debug/BufferedLogCallback.cxx @@ -26,6 +26,8 @@ #include #include #include + +#include // for malloc namespace simgear {