summaryrefslogtreecommitdiffstats
path: root/Alc/helpers.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-10-06 21:30:03 -0700
committerChris Robinson <[email protected]>2012-10-06 21:30:03 -0700
commitd52cb3708bd3a05f19e4fecbe29ac6f301b2d0b2 (patch)
tree49d3d16f8f767387445a28b6a66573c178a89539 /Alc/helpers.c
parentfa8d3746134d4e1bda0491c2e964ef07a67b6be5 (diff)
Include windows.h before cpuid.h to avoid __cpuid clashes
Diffstat (limited to 'Alc/helpers.c')
-rw-r--r--Alc/helpers.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/Alc/helpers.c b/Alc/helpers.c
index 03672a17..2143a4c8 100644
--- a/Alc/helpers.c
+++ b/Alc/helpers.c
@@ -20,23 +20,6 @@
#include "config.h"
-#include <stdlib.h>
-#include <time.h>
-#include <errno.h>
-#include <stdarg.h>
-#ifdef HAVE_DLFCN_H
-#include <dlfcn.h>
-#endif
-#ifdef HAVE_CPUID_H
-#include <cpuid.h>
-#endif
-#ifdef HAVE_FLOAT_H
-#include <float.h>
-#endif
-#ifdef HAVE_IEEEFP_H
-#include <ieeefp.h>
-#endif
-
#if defined(HAVE_GUIDDEF_H) || defined(HAVE_INITGUID_H)
#define INITGUID
#include <windows.h>
@@ -64,6 +47,23 @@ DEFINE_DEVPROPKEY(DEVPKEY_Device_FriendlyName, 0xa45c254e, 0xdf1c, 0x4efd, 0x80,
#endif
+#include <stdlib.h>
+#include <time.h>
+#include <errno.h>
+#include <stdarg.h>
+#ifdef HAVE_DLFCN_H
+#include <dlfcn.h>
+#endif
+#ifdef HAVE_CPUID_H
+#include <cpuid.h>
+#endif
+#ifdef HAVE_FLOAT_H
+#include <float.h>
+#endif
+#ifdef HAVE_IEEEFP_H
+#include <ieeefp.h>
+#endif
+
#include "alMain.h"
ALuint CPUCapFlags = 0;