diff --git a/CMakeLists.txt b/CMakeLists.txt index 7c5008ca1..0c7c62e13 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -179,19 +179,6 @@ if(LTO) endif() endif() -check_include_file("tgmath.h" HAVE_TGMATH_H) -if(HAVE_TGMATH_H) - if(NOT MSVC) - set(CMAKE_REQUIRED_LIBRARIES "m") - endif() - check_c_source_compiles("#include - const float val = 2, val2 = 3; - int main(){ return (int)(-asin(val) + cos(val2)); }" HAVE_VALID_TGMATH_H ) - if(${HAVE_VALID_TGMATH_H}) - add_definitions(-DHAVE_TGMATH_H) - endif() -endif() - if(BUILD_CLIENT) message(STATUS "Building client enabled") add_subdirectory(cl_dll) diff --git a/pm_shared/pm_debug.cpp b/pm_shared/pm_debug.cpp index 096ce3d15..e07fed14d 100644 --- a/pm_shared/pm_debug.cpp +++ b/pm_shared/pm_debug.cpp @@ -12,11 +12,8 @@ * without written permission from Valve LLC. * ****/ -#include +#include #include "mathlib.h" -#if HAVE_TGMATH_H -#include -#endif #include "usercmd.h" #include "pm_defs.h" @@ -24,8 +21,6 @@ #include "pm_movevars.h" #include "pm_debug.h" -#include - #if _MSC_VER #pragma warning(disable : 4244) #pragma warning(disable : 4305) diff --git a/pm_shared/pm_math.cpp b/pm_shared/pm_math.cpp index 9b88bccf5..b580b55ad 100644 --- a/pm_shared/pm_math.cpp +++ b/pm_shared/pm_math.cpp @@ -15,9 +15,6 @@ // pm_math.c -- math primitives #include #include "mathlib.h" -#if HAVE_TGMATH_H -#include -#endif #include "const.h" // up / down