]> code.delx.au - gnu-emacs/blobdiff - src/lisp.h
Fix printf-related compilation warnings on MinGW
[gnu-emacs] / src / lisp.h
index 3c6bf3473d8a1d015000638692b16045ca18cb2e..a0d0610a1867db78118ff6ca89671b845f4f951c 100644 (file)
@@ -88,7 +88,11 @@ typedef unsigned long EMACS_UINT;
 typedef long long int EMACS_INT;
 typedef unsigned long long int EMACS_UINT;
 #  define EMACS_INT_MAX LLONG_MAX
-#  define pI "ll"
+#  ifdef __MINGW32__
+#   define pI "I64"
+#  else
+#   define pI "ll"
+#  endif
 # else
 #  error "INTPTR_MAX too large"
 # endif