From: Eric Bollengier Date: Wed, 18 May 2022 07:28:03 +0000 (+0200) Subject: Fix ./configure error with test-cpp.c X-Git-Tag: Release-13.0.0~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=210e93a98d9d74a188ce0e37aef9a347add22af9;p=thirdparty%2Fbacula.git Fix ./configure error with test-cpp.c --- diff --git a/bacula/src/tools/test-cpp.c b/bacula/src/tools/test-cpp.c index ae11268a0..043894bf9 100644 --- a/bacula/src/tools/test-cpp.c +++ b/bacula/src/tools/test-cpp.c @@ -26,13 +26,13 @@ #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