lib: Update getopt.in.h from Gnulib with modifications.
commit7e884c00d0093c38339f17fb1d280eec493f42ca
authorJia Tan <jiat0218@gmail.com>
Fri, 22 Sep 2023 19:27:00 +0000 (23 03:27 +0800)
committerJia Tan <jiat0218@gmail.com>
Fri, 22 Sep 2023 19:27:00 +0000 (23 03:27 +0800)
tree06c8b953addb5b3625186f60440ac3258f39ee44
parentcff05f82066ca3ce9425dafdb086325a8eef8de3
lib: Update getopt.in.h from Gnulib with modifications.

We can still avoid modifying the contents of this file during
configuration to simplify the build systems. Gnulib added replacements
for inclusions guards for Cygwin. Cygwin should not need getopt_long
replacement so this feature can be omitted.

<unistd.h> is conditionally included to avoid MSVC since it is not
available.

The definition for _GL_ARG_NONNULL was also copied into this file from
Gnulib since this stage is usually done during gnulib-tool.
lib/getopt.in.h