use _XOPEN_SOURCE instead of manually prototyping wcwidth, also avoids a
conflict in musl
This commit is contained in:
parent
b04d8035c8
commit
c753bb3e76
|
@ -12,6 +12,7 @@
|
||||||
valid.
|
valid.
|
||||||
A UTF-8 validation routine is included.
|
A UTF-8 validation routine is included.
|
||||||
*/
|
*/
|
||||||
|
#define _XOPEN_SOURCE 700
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
@ -16,7 +16,7 @@ typedef unsigned long long u_int64_t;
|
||||||
|
|
||||||
extern int locale_is_utf8;
|
extern int locale_is_utf8;
|
||||||
|
|
||||||
#if defined(__WIN32__) || defined(__linux__)
|
#if defined(__WIN32__)
|
||||||
extern int wcwidth(uint32_t);
|
extern int wcwidth(uint32_t);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue