Commit c2b56985 authored by ian@well-typed.com's avatar ian@well-typed.com

Give an error if we can't find a suitable value for PRIdPTR

parent 71f7ab6a
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment