[libsoup] Remove extern "C" wrapping other includes



commit 3f88e62a37c02f6be38e390936c33fc015d8acfd
Author: Patrick Griffis <pgriffis igalia com>
Date:   Fri Apr 23 09:34:56 2021 -0500

    Remove extern "C" wrapping other includes
    
    This isn't the proper way to use extern C as the included
    headers may actually have C++ aware code in them.
    
    Fixes #222

 libsoup/include/soup-installed.h | 8 --------
 libsoup/soup.h                   | 8 --------
 2 files changed, 16 deletions(-)
---
diff --git a/libsoup/include/soup-installed.h b/libsoup/include/soup-installed.h
index 99954228..fcf1f682 100644
--- a/libsoup/include/soup-installed.h
+++ b/libsoup/include/soup-installed.h
@@ -6,10 +6,6 @@
 #ifndef __SOUP_H__
 #define __SOUP_H__ 1
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 #define __SOUP_H_INSIDE__
 
 #include <libsoup/soup-auth.h>
@@ -53,8 +49,4 @@ extern "C" {
 
 #undef __SOUP_H_INSIDE__
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif /* __SOUP_H__ */
diff --git a/libsoup/soup.h b/libsoup/soup.h
index 42d758a7..22a8f661 100644
--- a/libsoup/soup.h
+++ b/libsoup/soup.h
@@ -6,10 +6,6 @@
 #ifndef __SOUP_H__
 #define __SOUP_H__ 1
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 #define __SOUP_H_INSIDE__
 
 #include "auth/soup-auth.h"
@@ -53,8 +49,4 @@ extern "C" {
 
 #undef __SOUP_H_INSIDE__
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif /* __SOUP_H__ */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]