From 620da4de7f0bdc492c156fa53f423858ac012722 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 29 Apr 2006 18:58:37 +0000 Subject: [PATCH] Fix problem of accents with new Win32 code. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2987 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/kes-1.39 | 1 + bacula/src/bacula.h | 4 +++- bacula/src/filed/win32/winbacula.h | 7 ++++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/bacula/kes-1.39 b/bacula/kes-1.39 index 651b525d9a..9b331436bb 100644 --- a/bacula/kes-1.39 +++ b/bacula/kes-1.39 @@ -3,6 +3,7 @@ General: 29Apr06 +- Fix problem of accents with new Win32 code. - Integrate Howard's VSS patch. Tweak it a bit. VSS now works in the MinGW build with the exception that there is a problem with accented characters -- i.e. there is diff --git a/bacula/src/bacula.h b/bacula/src/bacula.h index 081611040d..5fd1d1f7a7 100644 --- a/bacula/src/bacula.h +++ b/bacula/src/bacula.h @@ -30,6 +30,8 @@ #ifdef HAVE_MINGW #include "mingwconfig.h" #include "winhost.h" +#define _STAT_H /* don't pull in MinGW stat.h */ +#define _STAT_DEFINED /* don't pull in MinGW stat.h */ #else #include "winconfig.h" #include "winhost.h" @@ -101,7 +103,7 @@ #if defined(HAVE_WIN32) & !defined(HAVE_MINGW) #include #else -#include +//#include #endif #include #if HAVE_SYS_WAIT_H diff --git a/bacula/src/filed/win32/winbacula.h b/bacula/src/filed/win32/winbacula.h index f56b9ed92b..c61d39e8d4 100755 --- a/bacula/src/filed/win32/winbacula.h +++ b/bacula/src/filed/win32/winbacula.h @@ -31,15 +31,16 @@ // WinUPS header file +#ifdef HAVE_MINGW +#include "compat.h" +#endif + #define STRICT 1 #include #include #include #include "winres.h" -#ifdef HAVE_MINGW -#include "compat.h" -#endif // Application specific messages -- 2.39.5