Include config.h.
[gnulib.git] / lib / xstrtol.c
index 591493e..0b4a714 100644 (file)
@@ -2,12 +2,8 @@
 #include <config.h>
 #endif
 
-#include "xstrtol.h" /* Get definition for __P before use. */
-
 #ifdef STDC_HEADERS
 #include <stdlib.h>
-#else
-__unsigned long int __strtol __P ((const char *, char **, int base));
 #endif
 
 #ifdef HAVE_STRING_H
@@ -28,17 +24,19 @@ extern int errno;
 #endif
 
 #if HAVE_LIMITS_H
-#include <limits.h>
+# include <limits.h>
 #endif
 
 #ifndef ULONG_MAX
-#define ULONG_MAX ((unsigned long) ~(unsigned long) 0)
+# define ULONG_MAX ((unsigned long) ~(unsigned long) 0)
 #endif
 
 #ifndef LONG_MAX
-#define LONG_MAX ((long int) (ULONG_MAX >> 1))
+# define LONG_MAX ((long int) (ULONG_MAX >> 1))
 #endif
 
+#include "xstrtol.h"
+
 #define BKM_SCALE(x, scale_factor, error_return)                       \
       do                                                               \
        {                                                               \