X-Git-Url: http://git.efficios.com/?p=argpar.git;a=blobdiff_plain;f=tests%2Ftap%2Ftap.h;fp=tests%2Ftap%2Ftap.h;h=f07c1dbbabf309765085f576158be0b60d078779;hp=b3e94450541e203ba38bb9c5b2c3a71fd0869252;hb=88d1c8ae5c47e5d89c4a74def8edbf05008f3614;hpb=e4ad745d50c285bae34cf59e2dcc339a5bf0dad8 diff --git a/tests/tap/tap.h b/tests/tap/tap.h index b3e9445..f07c1db 100644 --- a/tests/tap/tap.h +++ b/tests/tap/tap.h @@ -5,8 +5,12 @@ * Copyright (C) 2017 Jérémie Galarneau */ +#ifdef __cplusplus +extern "C" { +#endif + /* '## __VA_ARGS__' is a gcc'ism. C99 doesn't allow the token pasting - and requires the caller to add the final comma if they've ommitted + and requires the caller to add the final comma if they've omitted the optional arguments */ #ifdef __GNUC__ # define ok(e, test, ...) ((e) ? \ @@ -80,3 +84,7 @@ void todo_start(const char *, ...); void todo_end(void); int exit_status(void); + +#ifdef __cplusplus +} +#endif