diff dw.h @ 2171:6533fc42c951

Fix building on Windows 2000 and changes to avoid CRT warnings. Was using __has_extension() to check for clang, use __clang__ instead.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 05 Oct 2020 00:49:20 +0000
parents f98cecae5402
children c677d728e143
line wrap: on
line diff
--- a/dw.h	Sun Oct 04 23:50:36 2020 +0000
+++ b/dw.h	Mon Oct 05 00:49:20 2020 +0000
@@ -1549,7 +1549,7 @@
 
 #include <limits.h>
 /* Macros for converting from INT/UINT to and from POINTER without compiler warnings */
-#if _MSC_VER > 1500 || (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 30100 || defined(__has_extension)
+#if _MSC_VER > 1500 || __GNUC_PREREQ(3, 1) || defined(__clang__)
 #include <stdint.h>
 /* There has got to be a better way to check for the intptr_t type....
  * for now just include valid versions of Visual C and GCC plus clang.