]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix ./configure error with test-cpp.c
authorEric Bollengier <eric@baculasystems.com>
Wed, 18 May 2022 07:28:03 +0000 (09:28 +0200)
committerEric Bollengier <eric@baculasystems.com>
Wed, 18 May 2022 07:29:03 +0000 (09:29 +0200)
bacula/src/tools/test-cpp.c

index ae11268a0af84db62b765f195f8c41556baccc76..043894bf901bd0ad9fface934eb079f130b3674c 100644 (file)
 #if __cplusplus >= 201103L
 # define bdelete_and_null_auto(a) do{if(a){auto b__ = a; (a)=NULL; delete b__;}} while(0)
 #else
-# define do{ok(1, "auto not available")
+# define bdelete_and_null_auto(a) do{ok(1, "auto not available");}while(0)
 #endif
 
 # ifdef HAVE_TYPEOF
 #  define bdelete_and_null_typeof(a) do{if(a){typeof(a) b__ = a; (a)=NULL; delete b__;}} while(0)
 # else
-# define ok(1, "typeof not available")
+# define bdelete_and_null_typeof(a) do{ok(1, "typeof not available");}while(0)
 #endif
 
 class obj