]> O.S.I.I.S - jp/vkhelpers.git/commitdiff
add _USE_MATH_DEFINES for msvc M_PI in math.h
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Wed, 29 Jan 2020 03:20:32 +0000 (04:20 +0100)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Wed, 29 Jan 2020 03:20:32 +0000 (04:20 +0100)
include/vkh.h

index 7f41e5a908b220b24cb5c46229957730d7870118..a56c69a42e7db3c919bfcd68661aea925bf92ceb 100644 (file)
@@ -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