hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=2f8b1063b44bd2182d19c70b4252f0fb2aa1a693

commit 2f8b1063b44bd2182d19c70b4252f0fb2aa1a693
Author: Vincent Torri <vincent.to...@gmail.com>
Date:   Thu Nov 4 16:07:40 2021 +0900

    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
---
 src/bin/main.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/bin/main.c b/src/bin/main.c
index 4980b99..9fb0705 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -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();

-- 


Reply via email to