X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fbaconfig.h;h=4c7ae5ef3105c46fc1708965b4aac4ff8386411e;hb=8fe276359efe90c40a83f85ff8476d17f10da740;hp=67f88f498f6c5c5ccdfad23ce6d5ef2a071392a9;hpb=7c719e9e506d14185327e177d09af28383be42e3;p=bacula%2Fbacula diff --git a/bacula/src/baconfig.h b/bacula/src/baconfig.h index 67f88f498f..4c7ae5ef31 100644 --- a/bacula/src/baconfig.h +++ b/bacula/src/baconfig.h @@ -83,7 +83,6 @@ void InitWinAPIWrapper(); #define OSDependentInit() InitWinAPIWrapper() -#undef ENABLE_NLS #if defined(BUILDING_DLL) # define DLL_IMP_EXP _declspec(dllexport) @@ -110,6 +109,7 @@ void InitWinAPIWrapper(); #define tape_read read #define tape_write write #define tape_close ::close + #endif @@ -123,6 +123,12 @@ void InitWinAPIWrapper(); #define N_(s) (s) #endif /* N_ */ #else /* !ENABLE_NLS */ + #undef _ + #undef N_ + #undef textdomain + #undef bindtextdomain + #undef setlocale + #ifndef _ #define _(s) (s) #endif @@ -139,6 +145,8 @@ void InitWinAPIWrapper(); #define setlocale(p, d) #endif #endif /* ENABLE_NLS */ + + /* Use the following for strings not to be translated */ #define NT_(s) (s) @@ -277,6 +285,9 @@ void InitWinAPIWrapper(); /* Size of File Address stored in STREAM_SPARSE_DATA. Do NOT change! */ #define SPARSE_FADDR_SIZE (sizeof(uint64_t)) +/* Size of crypto length stored at head of crypto buffer. Do NOT change! */ +#define CRYPTO_LEN_SIZE ((int)sizeof(uint32_t)) + /* This is for dumb compilers/libraries like Solaris. Linux GCC * does it correctly, so it might be worthwhile @@ -529,6 +540,14 @@ int m_msg(const char *file, int line, POOLMEM *&pool_buf, const char *fmt, ...) #ifndef HAVE_WXCONSOLE #undef strdup #define strdup(buf) bad_call_on_strdup_use_bstrdup(buf) +#else +/* Groan, WxWidgets has its own way of doing NLS so cleanup */ +#ifndef ENABLE_NLS +#undef _ +#undef setlocale +#undef textdomain +#undef bindtextdomain +#endif #endif /* Use our fgets which handles interrupts */ @@ -645,7 +664,6 @@ extern int h_errno; */ extern "C" int getdomainname(char *name, int namelen); extern "C" int setdomainname(char *name, int namelen); -#define uLong unsigned long #endif /* HAVE_HPUX_OS */