Oops, M_PI is POSIX so it isn't defined in math.h on Windows

This commit is contained in:
dongresource 2020-12-06 05:49:08 +01:00
parent 8ebabac7c0
commit 27f396af7e

View File

@ -10,6 +10,7 @@
#ifndef NOMINMAX #ifndef NOMINMAX
#define NOMINMAX #define NOMINMAX
#endif #endif
#define M_PI 3.14159265358979323846
#define _WINSOCK_DEPRECATED_NO_WARNINGS #define _WINSOCK_DEPRECATED_NO_WARNINGS
#include <winsock2.h> #include <winsock2.h>
#include <windows.h> #include <windows.h>