From 446beac7d8fe7e2f4cb54dec849a1585d1f5b5c5 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 6 Jan 2025 14:58:18 -0800 Subject: [PATCH] nng/args.h: add header guard --- include/nng/args.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/nng/args.h b/include/nng/args.h index faaa98b2f..632b65e8d 100644 --- a/include/nng/args.h +++ b/include/nng/args.h @@ -8,6 +8,9 @@ // found online at https://opensource.org/licenses/MIT. // +#ifndef NNG_ARGS_H +#define NNG_ARGS_H + // This is a relatively simple "command line options parsing" library, used to // parse command line options. We would use getopt(3), but there are // two problems with getopt(3). First, it isn't available on all @@ -161,3 +164,5 @@ nng_args_parse(int argc, char *const *argv, const nng_arg_spec *specs, return (0); } + +#endif // NNG_ARGS_H