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 <redacted> for the patch!
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-extern "C" {
#include <sigrokdecode.h> /* First, so we avoid a _POSIX_C_SOURCE warning. */
#include <signal.h>
#include <stdint.h>
#include <libsigrok/libsigrok.h>
-}
#include <getopt.h>
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-extern "C" {
#include <sigrokdecode.h>
-}
#include <QTextDocument>
#include "about.h"
#include <ui_about.h>
-extern "C" {
/* __STDC_FORMAT_MACROS is required for PRIu64 and friends (in C++). */
#define __STDC_FORMAT_MACROS
#include <glib.h>
#include <libsigrok/libsigrok.h>
-}
+
namespace pv {
namespace dialogs {
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-extern "C" {
#include <sigrokdecode.h>
-}
#include <QAction>
#include <QApplication>
#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 <inttypes.h>
#include <stdarg.h>
#include <glib.h>
#include <libsigrok/libsigrok.h>
-}
+
namespace pv {