Allow VS2015 to compile StepMania.
This commit is contained in:
+15
-10
@@ -84,16 +84,21 @@ include(CheckFunctionExists)
|
||||
include(CheckSymbolExists)
|
||||
include(CheckCXXSymbolExists)
|
||||
|
||||
if (WIN32 AND MSVC)
|
||||
check_function_exists(_mkdir HAVE__MKDIR)
|
||||
check_function_exists(_snprintf HAVE__SNPRINTF)
|
||||
else()
|
||||
check_function_exists(fcntl HAVE_FCNTL)
|
||||
check_function_exists(fork HAVE_FORK)
|
||||
check_function_exists(mkdir HAVE_MKDIR)
|
||||
check_function_exists(snprintf HAVE_SNPRINTF)
|
||||
check_function_exists(waitpid HAVE_WAITPID)
|
||||
endif()
|
||||
# Mostly Windows functions.
|
||||
check_function_exists(_mkdir HAVE__MKDIR)
|
||||
check_cxx_symbol_exists(_snprintf cstdio HAVE__SNPRINTF)
|
||||
#check_function_exists(_snprintf HAVE__SNPRINTF)
|
||||
|
||||
# Mostly non-Windows functions.
|
||||
check_function_exists(fcntl HAVE_FCNTL)
|
||||
check_function_exists(fork HAVE_FORK)
|
||||
check_function_exists(mkdir HAVE_MKDIR)
|
||||
#check_function_exists(snprintf HAVE_SNPRINTF)
|
||||
check_cxx_symbol_exists(snprintf cstdio HAVE_SNPRINTF)
|
||||
check_function_exists(waitpid HAVE_WAITPID)
|
||||
|
||||
|
||||
# Mostly universal symbols.
|
||||
check_cxx_symbol_exists(powf cmath HAVE_POWF)
|
||||
check_cxx_symbol_exists(sqrtf cmath HAVE_SQRTF)
|
||||
check_cxx_symbol_exists(sinf cmath HAVE_SINF)
|
||||
|
||||
Reference in New Issue
Block a user