Skip to content

Commit 0360618

Browse files
committed
math defines on windows
1 parent 89ec2bd commit 0360618

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

src/rebound.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#define _LP64 // automatically defined on 64bit Linux and MacOS
3333
#endif // _WIN64
3434
#ifdef _WIN32
35+
#define _USE_MATH_DEFINES // Windows (MVSC) does not include math constants by default.
3536
#define REB_RESTRICT
3637
// Windows needs different declarations depending on whether the library is built or used.
3738
#ifdef BUILDINGLIBREBOUND

src/rebound_internal.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828

2929
// Definitions for functions that we need to implement ourselves on Windows.
3030
#ifdef _WIN32
31-
#define _USE_MATH_DEFINES // Windows (MVSC) does not include math constants by default.
3231
#define _NO_CRT_STDIO_INLINE // WIN32 to use _vsprintf_s
3332
#include <WinSock2.h>
3433
#define _WINSOCKAPI_ //stops windows.h including winsock.h

0 commit comments

Comments
 (0)