d3d1x: fix GUID declarations

This commit is contained in:
Luca Barbieri
2010-09-22 19:04:36 +02:00
parent 6ce098631a
commit 4f8e38dab8
@@ -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>