From f832335f123c808b442472b4d209b51533792e55 Mon Sep 17 00:00:00 2001 From: Matteo Cypriani Date: Thu, 17 Mar 2011 13:39:36 +0100 Subject: [PATCH] [lib] Allow linking to C++ code --- libowlps/owlps.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libowlps/owlps.h b/libowlps/owlps.h index 4823f6a..4b706e2 100644 --- a/libowlps/owlps.h +++ b/libowlps/owlps.h @@ -5,6 +5,10 @@ #ifndef _LIBOWLPS_H_ #define _LIBOWLPS_H_ +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + #include #include @@ -266,4 +270,8 @@ void owl_sigterm_handler(int num) ; #define IS_RETRY(IEEE80211_FLAGS) ((IEEE80211_FLAGS) & 0x08) +#ifdef __cplusplus +} +#endif // __cplusplus + #endif // _LIBOWLPS_H_