[Piglit] [PATCH 5/5] piglit-util: define _USE_MATH_DEFINES for MSVC
Brian Paul
brianp at vmware.com
Wed Sep 28 13:06:04 PDT 2011
This fixes undefined M_PI errors with MSVC.
---
tests/util/piglit-util.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/tests/util/piglit-util.h b/tests/util/piglit-util.h
index 9c3858b..2ac09a6 100644
--- a/tests/util/piglit-util.h
+++ b/tests/util/piglit-util.h
@@ -38,6 +38,7 @@ typedef unsigned __int64 uint64_t;
#define bool BOOL
#define true 1
#define false 0
+#define _USE_MATH_DEFINES
#else
#include <stdint.h>
#include <stdbool.h>
--
1.7.3.4
More information about the Piglit
mailing list