Don't try to set _USE_MATH_DEFINES if already defined

This commit is contained in:
Ryan VanderMeulen 2022-06-15 23:05:15 -04:00 committed by Behdad Esfahbod
parent 25917c780f
commit 1c0eeb7cb3
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@
#include <cassert> #include <cassert>
#include <cfloat> #include <cfloat>
#include <climits> #include <climits>
#ifdef _MSC_VER #if defined(_MSC_VER) && !defined(_USE_MATH_DEFINES)
# define _USE_MATH_DEFINES # define _USE_MATH_DEFINES
#endif #endif
#include <cmath> #include <cmath>