Skip to content

Commit

Permalink
nng/args.h: add header guard
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Jan 6, 2025
1 parent f42d0c6 commit 446beac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/nng/args.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -161,3 +164,5 @@ nng_args_parse(int argc, char *const *argv, const nng_arg_spec *specs,

return (0);
}

#endif // NNG_ARGS_H

0 comments on commit 446beac

Please sign in to comment.