From dab3ff000e8fc984abe4cd04dbbc9aaf8052c813 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Fri, 13 Aug 2010 04:11:21 +0000 Subject: [PATCH] - Enable backpatching on non-Windows machines. SVN r2528 (trunk) --- src/CMakeLists.txt | 3 ++- src/nodebuild.cpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d00b88824..9b763dee3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -6,6 +6,7 @@ endif( COMMAND cmake_policy ) include( CheckCXXSourceCompiles ) include( CheckFunctionExists ) +include( CheckCXXCompilerFlag ) include( FindPkgConfig ) option( NO_ASM "Disable assembly code" ) @@ -37,7 +38,7 @@ set( MINOR_VERSIONS "50" "49" "48" "47" "46" "45" "44" "43" "42" "41" "27" "26" "25" "24" "23" "22" "21" "20" "21" "19" "18" "17" "16" "15" "14" "13" "12" "11" "10" "09" "08" "07" "06" "05" "04" "03" "02" "01" "00" ) -set( MAJOR_VERSIONS "26" "24" "22" "20" ) +set( MAJOR_VERSIONS "30" "28" "26" "24" "22" "20" ) set( FMOD_DIR_VERSIONS ${FMOD_DIR_VERSIONS} "../fmod" ) foreach( majver ${MAJOR_VERSIONS} ) foreach( minver ${MINOR_VERSIONS} ) diff --git a/src/nodebuild.cpp b/src/nodebuild.cpp index 8298e9017..cbeb23f77 100644 --- a/src/nodebuild.cpp +++ b/src/nodebuild.cpp @@ -1082,6 +1082,7 @@ __declspec(dllimport) int __stdcall VirtualProtect(void *, unsigned long, unsign #else #include #include +#include #endif #ifdef __GNUC__