[pypy-svn] r73509 - pypy/branch/cpython-extension/pypy/translator/c/src

afa at codespeak.net afa at codespeak.net
Wed Apr 7 18:24:29 CEST 2010


Author: afa
Date: Wed Apr  7 18:24:26 2010
New Revision: 73509

Modified:
   pypy/branch/cpython-extension/pypy/translator/c/src/commondefs.h
Log:
Fix for my gcc-4.1.2 on debian which doesnt' define LLONG_MAX by default


Modified: pypy/branch/cpython-extension/pypy/translator/c/src/commondefs.h
==============================================================================
--- pypy/branch/cpython-extension/pypy/translator/c/src/commondefs.h	(original)
+++ pypy/branch/cpython-extension/pypy/translator/c/src/commondefs.h	Wed Apr  7 18:24:26 2010
@@ -15,6 +15,13 @@
 
 #include <limits.h>
 
+#ifndef LLONG_MAX
+#define LLONG_MAX __LONG_LONG_MAX__
+#endif
+#ifndef LLONG_MIN
+#define LLONG_MIN (-LLONG_MAX - 1LL)
+#endif
+
 #if INT_MAX != 2147483647
 #  error "unsupported value for INT_MAX"
 #endif



More information about the Pypy-commit mailing list