Give an error if we can't find a suitable value for PRIdPTR
authorIan Lynagh <ian@well-typed.com>
Thu, 8 Nov 2012 21:51:02 +0000 (21:51 +0000)
committerIan Lynagh <ian@well-typed.com>
Thu, 8 Nov 2012 22:08:29 +0000 (22:08 +0000)
includes/mkDerivedConstants.c

index bd2214e..dedb386 100644 (file)
 #if SIZEOF_VOID_P == SIZEOF_INT
 /* compiling for 32bit target */
 #define PRIdPTR "d"
-#else
+#elif SIZEOF_VOID_P == SIZEOF_LONG
 /* compiling for 64bit target */
 #define PRIdPTR "ld"
+#else
+#error Cannot find definition for PRIdPTR
 #endif
 #endif