]> granicus.if.org Git - python/commitdiff
Move down the INT_MAX logic, because HAVE_LIMITS_H was always undefined
authorVladimir Marangozov <vladimir.marangozov@t-online.de>
Sun, 3 Sep 2000 23:47:08 +0000 (23:47 +0000)
committerVladimir Marangozov <vladimir.marangozov@t-online.de>
Sun, 3 Sep 2000 23:47:08 +0000 (23:47 +0000)
and this breaks the AIX build with an INT_MAX redefinition error.
"config.h" is included in pgenheaders.h, so moving this down fixes the
problem.

Parser/node.c

index 277520a68caf7aab01ae87e8e72edaa2ddf10996..25edc8bed0857d2f88e911a808a70b1451af623e 100644 (file)
@@ -1,4 +1,10 @@
 
+/* Parse tree node implementation */
+
+#include "pgenheaders.h"
+#include "node.h"
+#include "errcode.h"
+
 #ifdef HAVE_LIMITS_H
 #include <limits.h>
 #endif
@@ -6,12 +12,6 @@
 #define INT_MAX 2147483647
 #endif
 
-/* Parse tree node implementation */
-
-#include "pgenheaders.h"
-#include "node.h"
-#include "errcode.h"
-
 node *
 PyNode_New(int type)
 {