Adopt use of gnulib for portability.
[pspp-builds.git] / pref.h.orig
index 2193c6b4082b1fcbf340b8161fd0e5be07d02ae2..f17dd334a508ace00b52f6198b08c9a3ca004e06 100644 (file)
@@ -38,6 +38,9 @@
    declarations on whether gcc is in use. */
 #if __GNUC__ > 1
 #define ATTRIBUTE(X) __attribute__ (X)
+
+/* Only necessary because of a wart in gnulib's xalloc.h. */
+#define __attribute__(X) __attribute__ (X)
 #else
 #define ATTRIBUTE(X)
 #endif
 #define MALLOC_LIKE
 #endif
 \f
-/* Internationalization. */
-#include <libintl.h>
-
-#if !ENABLE_NLS
-/* If we don't do this then gettext() still monkeys with the
-   string, keeping gcc from checking printf() format types. */
-#undef gettext
-#define gettext(STRING) STRING
-#endif
-
-#define _(STRING) gettext(STRING)
-#define N_(STRING) STRING
-\f
 /* Filesystems. */
 
 /* Directory separator and path delimiter for this OS. */