d3d1x: define GUIDs in the normal way
authorLuca Barbieri <luca@luca-barbieri.com>
Wed, 22 Sep 2010 17:31:54 +0000 (19:31 +0200)
committerLuca Barbieri <luca@luca-barbieri.com>
Wed, 22 Sep 2010 17:44:58 +0000 (19:44 +0200)
src/gallium/state_trackers/d3d1x/d3d1xstutil/include/d3d1xstutil.h
src/gallium/state_trackers/d3d1x/progs/d3d10app/d3d10x11main.cpp
src/gallium/state_trackers/d3d1x/progs/d3d11app/d3d11x11main.cpp

index 83cf0f2..7627720 100644 (file)
@@ -42,20 +42,6 @@ namespace std
 #include <utility>
 
 #define WIN32_LEAN_AND_MEAN
-#define INITGUID
-#include <guiddef.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
-#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>
 
index ddba685..0fcef0d 100755 (executable)
@@ -24,7 +24,6 @@
  *\r
  **************************************************************************/\r
 \r
-#define INITGUID\r
 #include "d3d10app.h"\r
 #include <X11/Xlib.h>\r
 #include <GL/glx.h>\r