summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2012-11-08 21:51:02 +0000
committerIan Lynagh <ian@well-typed.com>2012-11-08 22:08:29 +0000
commitc2b569858967d3d2c4410e7e70f4066e77b753d5 (patch)
tree2f0b306ec0471203c057065cc55ec97e9d59a89f /includes
parent71f7ab6a05448e48a3b5741bb8a5ef57701e9c70 (diff)
downloadhaskell-c2b569858967d3d2c4410e7e70f4066e77b753d5.tar.gz
Give an error if we can't find a suitable value for PRIdPTR
Diffstat (limited to 'includes')
-rw-r--r--includes/mkDerivedConstants.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/mkDerivedConstants.c b/includes/mkDerivedConstants.c
index bd2214e696..dedb386fb9 100644
--- a/includes/mkDerivedConstants.c
+++ b/includes/mkDerivedConstants.c
@@ -34,9 +34,11 @@
#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