NLS: on Windows, we need to include libintl.h so that NLS functions and macros are declared

Test Plan: compilation

Reviewers: Hermet, raster

Differential Revision: https://phab.enlightenment.org/D12301
This commit is contained in:
Vincent Torri 2021-11-04 16:07:40 +09:00 committed by Hermet Park
parent 1d4957aa8b
commit 2f8b1063b4
1 changed files with 6 additions and 2 deletions

View File

@ -2,6 +2,10 @@
#include "config.h"
#endif
#ifdef ENABLE_NLS
# include <libintl.h>
#endif
#include <Ecore_Getopt.h>
#include <Eio.h>
#include "common.h"
@ -1092,8 +1096,8 @@ init(app_data *ad, int argc, char **argv)
{
#ifdef ENABLE_NLS
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALE_DIR);
textdomain(PACKAGE);
bindtextdomain(PACKAGE_NAME, LOCALE_DIR);
textdomain(PACKAGE_NAME);
#endif /* set locale */
elm_setup();