From 07a6d60efb2e2174358c485adf79bcb3ef486dff Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Fri, 24 Mar 2006 21:28:46 +0000 Subject: [PATCH] add missing } for extern C git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@915 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/iax/src/iax-client.h | 2 +- libs/iax/src/iax.h | 4 ++-- src/include/switch_event.h | 4 ++++ src/include/switch_module_interfaces.h | 4 ++++ 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/libs/iax/src/iax-client.h b/libs/iax/src/iax-client.h index b8071d0790..837e5b7eea 100644 --- a/libs/iax/src/iax-client.h +++ b/libs/iax/src/iax-client.h @@ -111,7 +111,7 @@ struct iax_event { struct iax_session *session; /* Applicable session */ int datalen; /* Length of raw data */ struct iax_ies ies; /* IE's for IAX2 frames */ - unsigned char data[0]; /* Raw data if applicable */ + unsigned char data[]; /* Raw data if applicable */ }; #if defined(__cplusplus) diff --git a/libs/iax/src/iax.h b/libs/iax/src/iax.h index 7c2806b5de..be3ef9a435 100644 --- a/libs/iax/src/iax.h +++ b/libs/iax/src/iax.h @@ -71,7 +71,7 @@ struct iax_full_hdr { unsigned short seqno; /* Packet number */ char type; /* Frame type */ unsigned char csub; /* Compressed subclass */ - char data[0]; + char data[]; }; /* Mini header is used only for voice frames -- delivered unreliably */ @@ -80,7 +80,7 @@ struct iax_mini_hdr { unsigned short ts; /* 16-bit Timestamp (high 16 bits from last IAX_full_hdr) */ /* Frametype implicitly VOICE_FRAME */ /* subclass implicit from last IAX_full_hdr */ - char data[0]; + char data[]; }; #endif diff --git a/src/include/switch_event.h b/src/include/switch_event.h index 6635413081..13da936886 100644 --- a/src/include/switch_event.h +++ b/src/include/switch_event.h @@ -288,4 +288,8 @@ SWITCH_DECLARE(void) switch_event_deliver(switch_event **event); #define switch_event_fire_data(event, data) switch_event_fire_detailed(__FILE__, (char * )__FUNCTION__, __LINE__, event, data) ///\} +#ifdef __cplusplus +} +#endif + #endif diff --git a/src/include/switch_module_interfaces.h b/src/include/switch_module_interfaces.h index c17e28728b..aac4b07d7d 100644 --- a/src/include/switch_module_interfaces.h +++ b/src/include/switch_module_interfaces.h @@ -500,4 +500,8 @@ struct switch_api_interface { const struct switch_api_interface *next; }; +#ifdef __cplusplus +} +#endif + #endif