* Fixed compilation for Clang + Windows combo.

This commit is contained in:
Vladislav Dmitrievich Turbanov
2021-02-11 22:11:06 +03:00
parent c779a67d60
commit dca22fd6e9
2 changed files with 4 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
// This code is in the public domain -- Ignacio Castaño <castano@gmail.com>
// This code is in the public domain -- Ignacio Casta<EFBFBD>o <castano@gmail.com>
#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"

View File

@@ -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"