Explorar el Código

* Fixed compilation for Clang + Windows combo.

Vladislav Dmitrievich Turbanov hace 4 años
padre
commit
dca22fd6e9
Se han modificado 2 ficheros con 4 adiciones y 2 borrados
  1. 2 2
      3rdparty/nvtt/nvcore/nvcore.h
  2. 2 0
      3rdparty/nvtt/nvcore/posh.h

+ 2 - 2
3rdparty/nvtt/nvcore/nvcore.h

@@ -1,4 +1,4 @@
-// This code is in the public domain -- Ignacio Castaño <[email protected]>
+// This code is in the public domain -- Ignacio Casta�o <[email protected]>
 
 #ifndef NV_CORE_H
 #define NV_CORE_H
@@ -357,7 +357,7 @@ NV_COMPILER_CHECK(sizeof(uint32) == 4);
 #       include "defsgnuclinux.h"
 #   elif NV_OS_DARWIN || NV_OS_FREEBSD || NV_OS_OPENBSD
 #       include "defsgnucdarwin.h"
-#   elif NV_OS_MINGW
+#   elif NV_OS_MINGW || (NV_CC_CLANG && NV_OS_WIN32)
 #       include "defsgnucwin32.h"
 #   elif NV_OS_CYGWIN
 #       error "GCC: Cygwin not supported"

+ 2 - 0
3rdparty/nvtt/nvcore/posh.h

@@ -258,9 +258,11 @@ LLVM:
 #endif
 
 #if defined _MSC_VER
+#if !defined __clang__
 #  define POSH_COMPILER_STRING "Microsoft Visual C++"
 #  define POSH_COMPILER_MSVC 1
 #endif
+#endif
 
 #if defined __SUNPRO_C
 #  define POSH_COMPILER_STRING "Sun Pro"