Excluded crtdbg.h from non-MSVC compilation (#5401)
authorTiger Caldwell <tiger@caldwellfive.com>
Thu, 13 Jun 2019 09:58:40 +0000 (02:58 -0700)
committerWouter van Oortmerssen <aardappel@gmail.com>
Thu, 13 Jun 2019 09:58:40 +0000 (11:58 +0200)
src/util.cpp

index cd44ee7..cfa3f8b 100644 (file)
@@ -23,7 +23,9 @@
 #  ifndef NOMINMAX
 #    define NOMINMAX
 #  endif
-#  include <crtdbg.h>
+#  ifdef _MSC_VER
+#    include <crtdbg.h>
+#  endif
 #  include <windows.h>  // Must be included before <direct.h>
 #  include <direct.h>
 #  include <winbase.h>