mirror of
https://github.com/rkd77/elinks.git
synced 2025-06-30 22:19:29 -04:00
Bug 824: Define _XOPEN_SOURCE, not __USE_XOPEN.
_XOPEN_SOURCE has been standardized in SUSv2. <features.h> of GNU libc then defines the internal __USE_XOPEN macro.
This commit is contained in:
parent
2fd3e0b3b3
commit
14d1a0f3e2
@ -4,12 +4,15 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(HAVE_WCHAR_H) && defined(HAVE_WCWIDTH)
|
||||||
|
#define _XOPEN_SOURCE 500
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#if defined(HAVE_WCHAR_H) && defined(HAVE_WCWIDTH)
|
#if defined(HAVE_WCHAR_H) && defined(HAVE_WCWIDTH)
|
||||||
#define __USE_XOPEN
|
|
||||||
#include <wchar.h>
|
#include <wchar.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user