aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2025-01-06 14:58:18 -0800
committerGarrett D'Amore <garrett@damore.org>2025-01-06 14:58:18 -0800
commit446beac7d8fe7e2f4cb54dec849a1585d1f5b5c5 (patch)
treed6b360004ac5837db594c08d3ebaf5d2099b81e8 /include
parentf42d0c6ef956d119e8762a3ecda37886fa055637 (diff)
downloadnng-446beac7d8fe7e2f4cb54dec849a1585d1f5b5c5.tar.gz
nng-446beac7d8fe7e2f4cb54dec849a1585d1f5b5c5.tar.bz2
nng-446beac7d8fe7e2f4cb54dec849a1585d1f5b5c5.zip
nng/args.h: add header guard
Diffstat (limited to 'include')
-rw-r--r--include/nng/args.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/nng/args.h b/include/nng/args.h
index faaa98b2..632b65e8 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