diff --git a/include/optlist.h b/include/optlist.h index 8e7d911f9..91c0518ea 100644 --- a/include/optlist.h +++ b/include/optlist.h @@ -4,6 +4,10 @@ #ifndef OPTLIST_H #define OPTLIST_H +#ifdef OPTIONS_C +static int optfn_boolean(int, int, boolean, char *, char *); +#endif + /* * NOTE: If you add (or delete) an option, please review: * doc/options.txt @@ -12,7 +16,6 @@ * updates that should accompany your change. */ -static int optfn_boolean(int, int, boolean, char *, char *); enum OptType { BoolOpt, CompOpt, OthrOpt }; enum Y_N { No, Yes }; enum Off_On { Off, On }; diff --git a/src/options.c b/src/options.c index 415284c71..fc727a39f 100644 --- a/src/options.c +++ b/src/options.c @@ -50,6 +50,8 @@ NEARDATA struct instance_flags iflags; /* provide linkage */ * */ +#define OPTIONS_C + #define NHOPT_PROTO #include "optlist.h" #undef NHOPT_PROTO @@ -72,6 +74,7 @@ static struct allopt_t allopt_init[] = { }; #undef NHOPT_PARSE +#undef OPTIONS_C #define PILE_LIMIT_DFLT 5 #define rolestring(val, array, field) \