Include makepath.h libintl.h, not after it.
authorJim Meyering <jim@meyering.net>
Wed, 5 May 1999 03:05:11 +0000 (03:05 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 5 May 1999 03:05:11 +0000 (03:05 +0000)
Otherwise, we'd get the wrong definition of PARAMS from libintl.h.
(The method of defining PARAMS in libintl.h doesn't check PROTOTYPES,
which is necessary on Irix4 since cc doesn't define __STDC__.)
From Kaveh Ghazi.

lib/makepath.c

index bf6ba31..4a758e3 100644 (file)
@@ -96,6 +96,9 @@ extern int errno;
 
 #define WX_USR (S_IWUSR | S_IXUSR)
 
+/* Include this before libintl.h so we get our definition of PARAMS. */
+#include "makepath.h"
+
 #if HAVE_LOCALE_H
 # include <locale.h>
 #endif
@@ -113,7 +116,6 @@ typedef int gid_t;
 #endif
 
 #include "save-cwd.h"
-#include "makepath.h"
 #include "error.h"
 
 void strip_trailing_slashes ();