Fixes for Cygwin.
[u/mdw/catacomb] / mptypes.c
index 9796d5c..922eae4 100644 (file)
--- a/mptypes.c
+++ b/mptypes.c
@@ -56,7 +56,7 @@
 
 /* --- Choose the largest integer type --- */
 
-#if defined(UINTMAX_MAX)
+#if defined(UINTMAX_MAX) && defined(PRIuMAX)
   typedef uintmax_t umax;
 # define P_UMAX PRIuMAX
 #elif defined(ULLONG_MAX)