Browse Source

Add CROSS_PLATFORM_UUIDOF definition for all platforms

WinAdapter.h defines CROSS_PLATFORM_UUIDOF for non-WIN32 platforms
unless the compiler is clang.
Helena Kotas 4 years ago
parent
commit
1ac30d1cda
1 changed files with 4 additions and 7 deletions
  1. 4 7
      include/dxc/dxcapi.h

+ 4 - 7
include/dxc/dxcapi.h

@@ -23,7 +23,10 @@
 #endif
 #endif
 #endif
 #endif
 
 
-#ifdef _WIN32
+#ifndef _WIN32
+#include <dlfcn.h>
+#include "dxc/Support/WinAdapter.h"
+#endif
 
 
 #ifndef CROSS_PLATFORM_UUIDOF
 #ifndef CROSS_PLATFORM_UUIDOF
 // Warning: This macro exists in WinAdapter.h as well
 // Warning: This macro exists in WinAdapter.h as well
@@ -31,12 +34,6 @@
   struct __declspec(uuid(spec)) interface;
   struct __declspec(uuid(spec)) interface;
 #endif
 #endif
 
 
-#else
-
-#include <dlfcn.h>
-#include "dxc/Support/WinAdapter.h"
-#endif
-
 struct IMalloc;
 struct IMalloc;
 
 
 struct IDxcIncludeHandler;
 struct IDxcIncludeHandler;