summaryrefslogtreecommitdiff
blob: fc1920a4f57ab9bbaed30280f6a5af861a66036e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
* grobian@gentoo.org: on Solaris 10 _XOPEN_SOURCE_EXTENDED may not be
  defined when including wchar.h with g++

--- prog/check_funs.cpp
+++ prog/check_funs.cpp
@@ -18,10 +18,6 @@
 
 #include "settings.h"
 
-#ifdef DEFINE_XOPEN_SOURCE_EXTENDED
-#  define _XOPEN_SOURCE_EXTENDED 1
-#endif
-
 #ifdef CURSES_NON_POSIX
 #define CURSES_ONLY 1
 #endif
@@ -35,6 +31,10 @@
 
 #include "gettext.h"
 
+#ifdef DEFINE_XOPEN_SOURCE_EXTENDED
+#  define _XOPEN_SOURCE_EXTENDED 1
+#endif
+
 using namespace acommon;
 
 StackPtr<CheckerString> state;