summaryrefslogtreecommitdiff
path: root/test/cairo-test.h
diff options
context:
space:
mode:
authorVladimir Vukicevic <vladimir@pobox.com>2006-09-09 17:06:21 -0700
committerU-CYCLONE\Vladimir Vukicevic <vladimir@cyclone.(none)>2006-09-09 17:06:21 -0700
commit3c5a02c3edf300494cebfe746292b1eeeea08595 (patch)
tree951d14da73836cb0d732dcd3dbcaeea79dce3a21 /test/cairo-test.h
parentdbd0fa193c77a6cb112b4862c72c3a18209a755e (diff)
downloadcairo-3c5a02c3edf300494cebfe746292b1eeeea08595.tar.gz
[win32] Misc win32 compilation fixes
Fix win32/MSVC defines for snprintf, inline, and M_PI
Diffstat (limited to 'test/cairo-test.h')
-rwxr-xr-x[-rw-r--r--]test/cairo-test.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/cairo-test.h b/test/cairo-test.h
index 381709d28..a2d0285b0 100644..100755
--- a/test/cairo-test.h
+++ b/test/cairo-test.h
@@ -53,6 +53,12 @@ typedef unsigned __int64 uint64_t;
#error Cannot find definitions for fixed-width integral types (uint8_t, uint32_t, \etc.)
#endif
+#ifdef _MSC_VER
+#define _USE_MATH_DEFINES
+#endif
+
+#include <math.h>
+
typedef enum cairo_test_status {
CAIRO_TEST_SUCCESS = 0,
CAIRO_TEST_FAILURE,