chiark / gitweb /
Add locale.h header, needed by freelocale()
authorDanilo Spinella <danyspin97@protonmail.com>
Mon, 11 Jun 2018 21:10:36 +0000 (23:10 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 22 Jun 2018 06:47:06 +0000 (08:47 +0200)
Without locale.h, there is an implicit declaration of function `freelocale`,
which is reported as error by -Werror=implicit-function-declaration.

src/basic/locale-util.h

index 4542770b15758629ef26673cfb5a1999aaf11f23..f75dcbc3d1bd2e2c091c0ca4241c5873ce1354d4 100644 (file)
@@ -22,7 +22,7 @@
 
 #include <libintl.h>
 #include <stdbool.h>
-//#include <locale.h>
+#include <locale.h>
 
 #include "macro.h"