d3d1x: fix GUID declarations
authorLuca Barbieri <luca@luca-barbieri.com>
Wed, 22 Sep 2010 17:04:36 +0000 (19:04 +0200)
committerLuca Barbieri <luca@luca-barbieri.com>
Wed, 22 Sep 2010 17:36:27 +0000 (19:36 +0200)
src/gallium/state_trackers/d3d1x/d3d1xstutil/include/d3d1xstutil.h

index 6c13a9ccb4ee95baa534ae1c86c086820ec61ff7..83cf0f2c3e4970a8e8d884dbd58b91715e55e1e4 100644 (file)
@@ -42,22 +42,23 @@ namespace std
 #include <utility>
 
 #define WIN32_LEAN_AND_MEAN
-#include <objbase.h>
+#define INITGUID
 #include <guiddef.h>
-#include <specstrings.h>
 
+// just replicate GUIDs in every object file to avoid the hassle of having to pull in a library for them
 #ifdef __GNUC__
 #define ATTRIBUTE_UNUSED __attribute__((unused))
 #else
 #define ATTRIBUTE_UNUSED
 #endif
-
-// just replicate GUIDs in every object file to avoid the hassle of having to pull in a library for them
 #undef DEFINE_GUID
 #define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
         static const GUID name ATTRIBUTE_UNUSED = \
        { l, w1, w2, { b1, b2,  b3,  b4,  b5,  b6,  b7,  b8 } }
 
+#include <objbase.h>
+#include <specstrings.h>
+
 #include "galliumdxgi.h"
 #include <d3dcommon.h>