]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
tests: move <assert.h> out of extern "C"
authorDaiki Ueno <ueno@gnu.org>
Mon, 26 Sep 2022 07:48:24 +0000 (16:48 +0900)
committerDaiki Ueno <ueno@gnu.org>
Tue, 22 Nov 2022 04:37:32 +0000 (13:37 +0900)
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>
tests/sanity-cpp.cpp

index 452689345c5e77b97ed451f159150dc26fe09422..b34d83d4694797914c5f5d70b5f211f149aa139a 100644 (file)
 #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>