summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Griffis <pgriffis@igalia.com>2021-04-23 09:34:56 -0500
committerPatrick Griffis <pgriffis@igalia.com>2021-04-23 09:34:56 -0500
commitcf294e4b18000e6af821bb927ed3cf2715c7a413 (patch)
treecec5f5f1dc3489cd5998aec97c1709e5c7c23aa3
parent6ffba02498dfcfed47d865fd6827200727bb20fb (diff)
downloadlibsoup-wip/remove-header-extern-c.tar.gz
Remove extern "C" wrapping other includeswip/remove-header-extern-c
This isn't the proper way to use extern C as the included headers may actually have C++ aware code in them.
-rw-r--r--libsoup/include/soup-installed.h8
-rw-r--r--libsoup/soup.h8
2 files changed, 0 insertions, 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__ */