From 81df4e8a05ec12a8140f220afbca5c62e7be2e4b Mon Sep 17 00:00:00 2001 From: Laurence Withers Date: Tue, 15 Nov 2011 16:49:22 +0000 Subject: [PATCH] Add C++ extern C include guards --- src/libiso8601/000_TopHeader.h | 4 ++++ src/libiso8601/999_BottomHeader.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/libiso8601/000_TopHeader.h b/src/libiso8601/000_TopHeader.h index e8badd1..b22a556 100644 --- a/src/libiso8601/000_TopHeader.h +++ b/src/libiso8601/000_TopHeader.h @@ -8,6 +8,10 @@ #ifndef HEADER_libiso8601 #define HEADER_libiso8601 +#ifdef __cplusplus +extern "C" { +#endif + /* standard includes, or includes needed for type declarations */ #include #include diff --git a/src/libiso8601/999_BottomHeader.h b/src/libiso8601/999_BottomHeader.h index 8a738c5..6923ccb 100644 --- a/src/libiso8601/999_BottomHeader.h +++ b/src/libiso8601/999_BottomHeader.h @@ -5,6 +5,10 @@ * http://www.gnu.org/copyleft/gpl.html for details. */ +#ifdef __cplusplus +} +#endif + #endif /* options for text editors