diff options
Diffstat (limited to 'source/slang/slang.cpp')
| -rw-r--r-- | source/slang/slang.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp index f2668b995..a3fd91ce0 100644 --- a/source/slang/slang.cpp +++ b/source/slang/slang.cpp @@ -49,14 +49,6 @@ // Used to print exception type names in internal-compiler-error messages #include <typeinfo> -#ifdef _WIN32 -#define WIN32_LEAN_AND_MEAN -#define NOMINMAX -#include <Windows.h> -#undef WIN32_LEAN_AND_MEAN -#undef NOMINMAX -#endif - extern Slang::String get_slang_cuda_prelude(); extern Slang::String get_slang_cpp_prelude(); extern Slang::String get_slang_hlsl_prelude(); @@ -4396,9 +4388,7 @@ void Session::addBuiltinSource( char const* diagnostics = sink.outputBuffer.getBuffer(); fprintf(stderr, "%s", diagnostics); -#ifdef _WIN32 - OutputDebugStringA(diagnostics); -#endif + PlatformUtil::outputDebugMessage(diagnostics); SLANG_UNEXPECTED("error in Slang standard library"); } |
