mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-15 22:11:17 +08:00
0024998: The incorrect _USE_MATH_DEFINES definition in Standard_math.hxx prevents the clean build for client applications
Add #ifndef clause to avoid redefinition compile error
This commit is contained in:
@@ -18,7 +18,10 @@
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
||||
#ifndef _USE_MATH_DEFINES
|
||||
#define _USE_MATH_DEFINES
|
||||
#endif
|
||||
|
||||
#include <math.h>
|
||||
|
||||
// MSVC versions prior to 12 did not provided acosh, asinh, atanh functions in standard library
|
||||
|
||||
Reference in New Issue
Block a user