summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2022-09-26 16:48:24 +0900
committerDaiki Ueno <ueno@gnu.org>2022-11-22 13:37:32 +0900
commit1eefda804ec427f86befc1e685e15445f2330560 (patch)
tree581b9ba69792f5c6fcce39d10cf1b237000ddd0c
parentdc9c590046f4e7c4e731230b70d7d71ae12f0d08 (diff)
downloadgnutls-1eefda804ec427f86befc1e685e15445f2330560.tar.gz
tests: move <assert.h> out of extern "C"
This fixes the issue with <assert.h> provided by Gnulib: ../gl/assert.h:209:1: error: template with C linkage 209 | template <int w> | ^~~~~~~~ Signed-off-by: Daiki Ueno <ueno@gnu.org>
-rw-r--r--tests/sanity-cpp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/sanity-cpp.cpp b/tests/sanity-cpp.cpp
index 452689345c..b34d83d469 100644
--- a/tests/sanity-cpp.cpp
+++ b/tests/sanity-cpp.cpp
@@ -26,13 +26,13 @@
#include <gnutls/gnutls.h>
#include <gnutls/gnutlsxx.h>
#include <iostream>
+#include <assert.h>
extern "C" {
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
-#include <assert.h>
#include "cert-common.h"
#include <setjmp.h>
#include <cmocka.h>