From 346f3ac1ea2a5d24bfbb26e0d4e485066639a209 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Fri, 24 Oct 2008 12:57:45 +0000 Subject: [PATCH] Attempt to get correct win32 includes git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7891 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/win32/filed/plugins/exchange-fd.h | 63 +++++++++++++++++++- 1 file changed, 62 insertions(+), 1 deletion(-) diff --git a/bacula/src/win32/filed/plugins/exchange-fd.h b/bacula/src/win32/filed/plugins/exchange-fd.h index 248274ce32..269df52161 100644 --- a/bacula/src/win32/filed/plugins/exchange-fd.h +++ b/bacula/src/win32/filed/plugins/exchange-fd.h @@ -32,13 +32,74 @@ #ifndef _EXCHANGE_FD_H #define _EXCHANGE_FD_H +#if defined(HAVE_WIN32) +#if defined(HAVE_MINGW) +#include "mingwconfig.h" +#else +#include "winconfig.h" +#endif +#else +#include "config.h" +#endif +#define __CONFIG_H + +#if defined(BUILDING_DLL) +# define DLL_IMP_EXP _declspec(dllexport) +#elif defined(USING_DLL) +# define DLL_IMP_EXP _declspec(dllimport) +#else +# define DLL_IMP_EXP +#endif + +enum { + /* Keep M_ABORT=1 for dlist.h */ + M_ABORT = 1, /* MUST abort immediately */ + M_DEBUG, /* debug message */ + M_FATAL, /* Fatal error, stopping job */ + M_ERROR, /* Error, but recoverable */ + M_WARNING, /* Warning message */ + M_INFO, /* Informational message */ + M_SAVED, /* Info on saved file */ + M_NOTSAVED, /* Info on notsaved file */ + M_SKIPPED, /* File skipped during backup by option setting */ + M_MOUNT, /* Mount requests */ + M_ERROR_TERM, /* Error termination request (no dump) */ + M_TERM, /* Terminating daemon normally */ + M_RESTORED, /* ls -l of restored files */ + M_SECURITY, /* security violation */ + M_ALERT, /* tape alert messages */ + M_VOLMGMT /* Volume management messages */ +}; + + + +#define _REENTRANT 1 +#define _THREAD_SAFE 1 +#define _POSIX_PTHREAD_SEMANTICS 1 + #include #include #include -#include "bacula.h" +#include +#ifdef HAVE_SYS_BITYPES_H +#include +#endif + +//#include "bacula.h" +#include +#include "win32/compat/compat.h" +#include "bc_types.h" #include "fd_plugins.h" #include "api.h" +#if defined(HAVE_WIN32) +#include "win32/winapi.h" +#include "winhost.h" +#else +#include "host.h" +#endif + + #define EXCHANGE_PLUGIN_VERSION 1 #define DLLEXPORT __declspec(dllexport) -- 2.39.5