From c2b569858967d3d2c4410e7e70f4066e77b753d5 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Thu, 8 Nov 2012 21:51:02 +0000 Subject: Give an error if we can't find a suitable value for PRIdPTR --- includes/mkDerivedConstants.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1