Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/c2b569858967d3d2c4410e7e70f4066e77b753d5

>---------------------------------------------------------------

commit c2b569858967d3d2c4410e7e70f4066e77b753d5
Author: Ian Lynagh <i...@well-typed.com>
Date:   Thu Nov 8 21:51:02 2012 +0000

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

>---------------------------------------------------------------

 includes/mkDerivedConstants.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/includes/mkDerivedConstants.c b/includes/mkDerivedConstants.c
index bd2214e..dedb386 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
 



_______________________________________________
Cvs-ghc mailing list
Cvs-ghc@haskell.org
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to