X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-argmatch.c;h=363033fa691f26fb77b74dfdc8776ae7a472164c;hb=9793b3ecf4f25f192b314758b35c398a1045711e;hp=f6126f6bd95e499f56113ef2bc4b9fa0101a3293;hpb=2bdb34493690a23b6b50e35f1a751ef8fd098ed7;p=gnulib.git diff --git a/tests/test-argmatch.c b/tests/test-argmatch.c index f6126f6bd..363033fa6 100644 --- a/tests/test-argmatch.c +++ b/tests/test-argmatch.c @@ -19,10 +19,6 @@ #include -/* Some packages define ARGMATCH_DIE in their . Here we want to - assume the default definition of ARGMATCH_DIE. */ -#undef ARGMATCH_DIE - #include "argmatch.h" #include @@ -41,6 +37,12 @@ } \ while (0) +/* Some packages define ARGMATCH_DIE and ARGMATCH_DIE_DECL in , and + thus must link with a definition of that function. Provide it here. */ +#ifdef ARGMATCH_DIE_DECL +ARGMATCH_DIE_DECL { exit (1); } +#endif + enum backup_type { no_backups,