aboutsummaryrefslogtreecommitdiffstatsci
path: root/include
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2020-01-29 04:20:32 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2020-01-29 04:20:32 +0100
commitd13ee198a63102ae2ec6feb3397a65a503dcc25e (patch)
tree53411e95f5ed6e26f7617e92e3d71f78b19618df /include
parentfe84bd171b3ef9ea34ee961859c148c4892e548d (diff)
add _USE_MATH_DEFINES for msvc M_PI in math.h
Diffstat (limited to 'include')
-rw-r--r--include/vkh.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/vkh.h b/include/vkh.h
index 7f41e5a..a56c69a 100644
--- a/include/vkh.h
+++ b/include/vkh.h
@@ -36,6 +36,8 @@ typedef enum VmaMemoryUsage VmaMemoryUsage;
#include <assert.h>
#include <stdbool.h>
#include <stdint.h>
+
+#define _USE_MATH_DEFINES //to have M_PI* defined with MSVC
#include <math.h>
#define VKH_KO 0x00000400