Remove extern "C" wrapping other includes 34/269134/1 accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified accepted/tizen_9.0_unified accepted/tizen_unified tizen tizen_7.0_hotfix tizen_8.0 tizen_9.0 accepted/tizen/7.0/unified/20221110.061838 accepted/tizen/7.0/unified/hotfix/20221116.111025 accepted/tizen/8.0/unified/20231005.095113 accepted/tizen/9.0/unified/20241030.233901 accepted/tizen/unified/20220111.123039 submit/tizen/20220110.082915 tizen_7.0_m2_release tizen_8.0_m2_release tizen_9.0_m2_release
authorSeonah Moon <seonah1.moon@samsung.com>
Mon, 10 Jan 2022 08:23:12 +0000 (17:23 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Mon, 10 Jan 2022 08:23:16 +0000 (17:23 +0900)
This isn't the proper way to use extern C as the included
headers may actually have C++ aware code in them.

Fixes #222
https://github.com/GNOME/libsoup/commit/3f88e62a37c02f6be38e390936c33fc015d8acfd

Change-Id: Ib6a8767f6896ad5e949a2e2541a6b9c99b204d29

libsoup/soup.h

index 48b75f0..67bd2a3 100644 (file)
@@ -6,10 +6,6 @@
 #ifndef __SOUP_H__
 #define __SOUP_H__ 1
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 #define __SOUP_H_INSIDE__
 
 #include <libsoup/soup-address.h>
@@ -68,8 +64,4 @@ extern "C" {
 
 #undef __SOUP_H_INSIDE__
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif /* __SOUP_H__ */