Don't include langinfo.h if LC_PAPER is not available.
[pspp-builds.git] / src / output / output.c
index ab91ed6f5f0929d4d8d3d1ae455aa14886ea835b..843b0d4e544996cebcd736b25c8225e185337d1f 100644 (file)
@@ -18,7 +18,9 @@
 
 #include <ctype.h>
 #include <errno.h>
+#if HAVE_LC_PAPER
 #include <langinfo.h>
+#endif
 #include <locale.h>
 #include <stdio.h>
 #include <stdlib.h>