From 3326831584e637a75ba7bb33c4a8e9d0427e89d4 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Thu, 23 Aug 2012 23:59:58 +0200 Subject: [PATCH] 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. --- citadel/context.h | 6 ++++++ citadel/event_client.h | 6 ++++++ 2 files changed, 12 insertions(+) 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, -- 2.30.2