1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

perl: add midding #define of __USE_XOPEN to call wcwidth defined in wchar.h

This commit is contained in:
Sébastien Helleu
2024-11-25 21:56:46 +01:00
parent ea11623793
commit e483113345
+10 -1
View File
@@ -22,8 +22,17 @@
#undef _
#include <locale.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
/* for wcwidth in wchar.h */
#ifndef __USE_XOPEN
#define __USE_XOPEN
#endif
#include <wchar.h>
#include <locale.h>
#include <EXTERN.h>
#include <perl.h>
#include <XSUB.h>