summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs/wchar
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wcswidth.c3
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wcwidth.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcswidth.c b/testsuites/psxtests/psxhdrs/wchar/wcswidth.c
index 2f122d5084..1657687b88 100644
--- a/testsuites/psxtests/psxhdrs/wchar/wcswidth.c
+++ b/testsuites/psxtests/psxhdrs/wchar/wcswidth.c
@@ -30,11 +30,12 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
+#define _XOPEN_SOURCE
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
-#define _XOPEN_SOURCE
#include <wchar.h>
int test(void);
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcwidth.c b/testsuites/psxtests/psxhdrs/wchar/wcwidth.c
index 9805b97844..75c215717d 100644
--- a/testsuites/psxtests/psxhdrs/wchar/wcwidth.c
+++ b/testsuites/psxtests/psxhdrs/wchar/wcwidth.c
@@ -30,11 +30,12 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
+#define _XOPEN_SOURCE
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
-#define _XOPEN_SOURCE
#include <wchar.h>
int test(void);