From: Wilfried Goesgens Date: Thu, 23 Aug 2012 21:59:58 +0000 (+0200) Subject: EVENT-CLIENT: fix potential compile problems with older compilers X-Git-Tag: v8.20~246 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=3326831584e637a75ba7bb33c4a8e9d0427e89d4 EVENT-CLIENT: fix potential compile problems with older compilers - forward declarations of structs musntn't duplicate. use the cpp to circumvent this. tnx the_mgt for reporting this. --- diff --git a/citadel/context.h b/citadel/context.h index 9243d5148..1d152a413 100644 --- a/citadel/context.h +++ b/citadel/context.h @@ -28,8 +28,14 @@ typedef enum __CCState { CON_SYS /* This is a system context and mustn't be purged */ } CCState; +#ifndef __ASYNCIO__ +#define __ASYNCIO__ typedef struct AsyncIO AsyncIO; /* forward declaration for event_client.h */ +#endif +#ifndef __CIT_CONTEXT__ +#define __CIT_CONTEXT__ typedef struct CitContext CitContext; +#endif /* * Here's the big one... the Citadel context structure. diff --git a/citadel/event_client.h b/citadel/event_client.h index 4be26614c..bf4aa4ea4 100644 --- a/citadel/event_client.h +++ b/citadel/event_client.h @@ -23,8 +23,14 @@ #include #include +#ifndef __ASYNCIO__ +#define __ASYNCIO__ typedef struct AsyncIO AsyncIO; +#endif +#ifndef __CIT_CONTEXT__ +#define __CIT_CONTEXT__ typedef struct CitContext CitContext; +#endif typedef enum _eNextState { eSendDNSQuery,