File hunspell-mingw-compile-fix.patch of Package mingw64-hunspell

diff -ur src/tools/hunspell.cxx hunspell-1.2.8/src/tools/hunspell.cxx
--- src/tools/hunspell.cxx	2008-09-04 15:44:19.000000000 +0200
+++ src/tools/hunspell.cxx	2009-11-11 17:27:28.000000000 +0100
@@ -28,7 +28,6 @@
 
 #ifdef WIN32
 
-#define gettext
 #define LIBDIR "C:\\Hunspell\\"
 #define USEROOODIR "Application Data\\OpenOffice.org 2\\user\\wordbook"
 #define OOODIR \
@@ -98,7 +97,7 @@
 #if ENABLE_NLS
 #ifdef HAVE_LOCALE_H
 #include <locale.h>
-#include <langinfo.h>
+///#include <langinfo.h>
 #endif
 
 #ifdef HAVE_LIBINTL_H
@@ -770,8 +769,6 @@
 
 } // pipe_interface
 
-#ifndef WIN32
-
 #ifdef HAVE_READLINE
 static char * rltext;
 
@@ -1301,7 +1298,6 @@
 }
 
 #endif
-#endif
 
 char * add(char * dest, const char * st) {
 	if (!dest) {
@@ -1385,7 +1381,7 @@
 #ifdef HAVE_LOCALE_H
 	ui_lang = setlocale(LC_ALL, "");
 	textdomain("hunspell");
-        ui_enc = nl_langinfo(CODESET);
+        //ui_enc = nl_langinfo(CODESET);
 #endif
 #endif
 
Only in src/tools: hunspell.cxx.orig
openSUSE Build Service is sponsored by