Fixed Visual Studio build
authorSam Lantinga <slouken@libsdl.org>
Sun, 26 May 2013 14:37:41 -0700
changeset 7230 757e9812ef1c
parent 7229 2636ad0a52e4
child 7231 6b7609e78489
Fixed Visual Studio build
src/joystick/windows/SDL_dxjoystick.c
--- a/src/joystick/windows/SDL_dxjoystick.c	Sun May 26 13:06:54 2013 -0700
+++ b/src/joystick/windows/SDL_dxjoystick.c	Sun May 26 14:37:41 2013 -0700
@@ -373,9 +373,10 @@
 
 
 DEFINE_GUID(CLSID_WbemLocator,   0x4590f811,0x1d3a,0x11d0,0x89,0x1F,0x00,0xaa,0x00,0x4b,0x2e,0x24);
-#ifndef __IWbemLocator_INTERFACE_DEFINED__
+#ifdef _MSC_VER
+/* The Windows SDK doesn't define this GUID */
 DEFINE_GUID(IID_IWbemLocator,    0xdc12a687,0x737f,0x11cf,0x88,0x4d,0x00,0xaa,0x00,0x4b,0x2e,0x24);
-#endif
+#endif /* _MSC_VER */
 
 /*-----------------------------------------------------------------------------
  *