diff options
author | pixel <pixel> | 2003-04-08 00:04:53 +0000 |
---|---|---|
committer | pixel <pixel> | 2003-04-08 00:04:53 +0000 |
commit | adb4a8774c3eae561032a51e219aff7a9b3f73c7 (patch) | |
tree | 743a04385d78e19f651ef15a10561aa1c9bea0ef | |
parent | c0108c1022ede4743247081f408ca7780095e520 (diff) |
Fixing mingw32 port
-rw-r--r-- | include/gettext.h | 1 | ||||
-rw-r--r-- | lib/Makefile.sol.mingw | 3 | ||||
-rw-r--r-- | src/test.cc | 8 |
3 files changed, 10 insertions, 2 deletions
diff --git a/include/gettext.h b/include/gettext.h index 248bf2e..662a424 100644 --- a/include/gettext.h +++ b/include/gettext.h @@ -54,6 +54,7 @@ # define textdomain(Domainname) ((const char *) (Domainname)) # define bindtextdomain(Domainname, Dirname) ((const char *) (Dirname)) # define bind_textdomain_codeset(Domainname, Codeset) ((const char *) (Codeset)) +# define setlocale(a, b) #endif diff --git a/lib/Makefile.sol.mingw b/lib/Makefile.sol.mingw index 333bf71..58da692 100644 --- a/lib/Makefile.sol.mingw +++ b/lib/Makefile.sol.mingw @@ -3,7 +3,7 @@ CXX = i586-mingw32msvc-g++ AR = i586-mingw32msvc-ar RANLIB = i586-mingw32msvc-ranlib CPPFLAGS = -I../include -DFORCE64 -I../../Baltisot/include -DDEBUG `/usr/local/win32/bin/sdl-config --cflags` -O3 -mwindows -I/usr/local/win32/include -OBJECTS = engine.o glbase.o glfont.o glshape.o glwidgets.o gltexture.o sprite.o +OBJECTS = base.o engine.o font.o glbase.o glfont.o glshape.o glsprite.o glwidgets.o mcolor.o shape.o sprite.o texture.o TARGET = mogltk-sol.a all: $(TARGET) @@ -14,4 +14,3 @@ $(TARGET): $(OBJECTS) clean: rm -f *.o $(TARGET) - diff --git a/src/test.cc b/src/test.cc index ede84c3..ce8f699 100644 --- a/src/test.cc +++ b/src/test.cc @@ -11,6 +11,14 @@ #include "engine.h" #include "glsprite.h" #include "glshape.h" +#ifdef HAVE_CONFIG_H +#include "config.h" +#else +#undef ENABLE_NLS +#define LC_ALL 0 +#endif +#include "gettext.h" + CODE_BEGINS virtual int startup() throw (GeneralException) { |