From: Nick Bowler Date: Sat, 6 Jan 2024 21:28:01 +0000 (-0500) Subject: help: Improve compatibility with old compilers. X-Git-Url: https://git.draconx.ca/gitweb/dxcommon.git/commitdiff_plain/fefed57c88a4cdd3f6cbcb75c1f1cbe462b85e0e help: Improve compatibility with old compilers. Before C99 it is not allowed to have a comma after the last item in an enum declaration, even though a lot of C89 compilers do support it. --- diff --git a/src/help.c b/src/help.c index a635a15..2e6043b 100644 --- a/src/help.c +++ b/src/help.c @@ -1,5 +1,5 @@ /* - * Copyright © 2021-2023 Nick Bowler + * Copyright © 2021-2024 Nick Bowler * * Helper functions for formatting --help program output. * @@ -72,7 +72,7 @@ enum { OPT_SHORT_WITHOUT_ARG = 4, OPT_LONG_WITH_OPTIONAL_ARG = 2, OPT_LONG_WITH_MANDATORY_ARG = 1, - OPT_LONG_WITHOUT_ARG = 0, + OPT_LONG_WITHOUT_ARG = 0 }; #if HELP_GETOPT_LONG_ONLY