From: Uwe Hermann Date: Wed, 20 Feb 2013 10:58:21 +0000 (+0100) Subject: Remove unneeded 'extern "C"'. X-Git-Tag: pulseview-0.1.0~124 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=e82fd481f744e0cccdad1d3552118280735ca8e5;p=pulseview.git Remove unneeded 'extern "C"'. System headers, glib headers, and libsigrok/libsigrokdecode headers all use 'extern "C"' already, so there's no need to explicitly add these in PulseView (for these cases). Thanks R. Diez for the patch! --- diff --git a/main.cpp b/main.cpp index e98506fc..fae6d5f2 100644 --- a/main.cpp +++ b/main.cpp @@ -18,12 +18,10 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -extern "C" { #include /* First, so we avoid a _POSIX_C_SOURCE warning. */ #include #include #include -} #include diff --git a/pv/dialogs/about.cpp b/pv/dialogs/about.cpp index 9195b83b..53072e78 100644 --- a/pv/dialogs/about.cpp +++ b/pv/dialogs/about.cpp @@ -18,21 +18,18 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -extern "C" { #include -} #include #include "about.h" #include -extern "C" { /* __STDC_FORMAT_MACROS is required for PRIu64 and friends (in C++). */ #define __STDC_FORMAT_MACROS #include #include -} + namespace pv { namespace dialogs { diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index 35b0da57..6b0fa676 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -18,9 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -extern "C" { #include -} #include #include @@ -37,7 +35,6 @@ extern "C" { #include "dialogs/about.h" #include "view/view.h" -extern "C" { /* __STDC_FORMAT_MACROS is required for PRIu64 and friends (in C++). */ #define __STDC_FORMAT_MACROS #include @@ -45,7 +42,7 @@ extern "C" { #include #include #include -} + namespace pv {