summaryrefslogtreecommitdiff
path: root/src/win32/getopt/getopt.h
diff options
context:
space:
mode:
authornightwalker-87 <15526941+Nightwalker-87@users.noreply.github.com>2024-02-01 00:01:58 +0100
committernightwalker-87 <15526941+Nightwalker-87@users.noreply.github.com>2024-02-01 00:01:58 +0100
commit40948aa3de78778f51af02d795327ac20fa385d3 (patch)
treeb2c46fa5d48d1c12a3b1f95f93917bbba6405a2e /src/win32/getopt/getopt.h
parente662da00ca294c874655c65cffae3edde97343e5 (diff)
parent133c2564dee478ed2fcf634ae217441ac723b3e3 (diff)
Merge remote-tracking branch 'origin/develop'v1.8.0origin/mastermasterfor-upstream
Diffstat (limited to 'src/win32/getopt/getopt.h')
-rw-r--r--src/win32/getopt/getopt.h24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/win32/getopt/getopt.h b/src/win32/getopt/getopt.h
index 3aaf73b..4f21e69 100644
--- a/src/win32/getopt/getopt.h
+++ b/src/win32/getopt/getopt.h
@@ -1,5 +1,7 @@
-#ifndef INCLUDED_GETOPT_PORT_H
-#define INCLUDED_GETOPT_PORT_H
+#ifndef GETOPT_H
+#define GETOPT_H
+
+#include <stdint.h>
#if defined(__cplusplus)
extern "C" {
@@ -11,24 +13,24 @@ extern "C" {
#define required_argument 1
#define optional_argument 2
#else
-extern const int no_argument;
-extern const int required_argument;
-extern const int optional_argument;
+extern const int32_t no_argument;
+extern const int32_t required_argument;
+extern const int32_t optional_argument;
#endif
extern char* optarg;
-extern int optind, opterr, optopt;
+extern int32_t optind, opterr, optopt;
struct option {
const char* name;
- int has_arg;
+ int32_t has_arg;
int* flag;
- int val;
+ int32_t val;
};
-int getopt(int argc, char* const argv[], const char* optstring);
+int32_t getopt(int32_t argc, char* const argv[], const char* optstring);
-int getopt_long(int argc,
+int32_t getopt_long(int32_t argc,
char* const argv[],
const char* optstring,
const struct option* longopts,
@@ -38,4 +40,4 @@ int getopt_long(int argc,
}
#endif
-#endif // INCLUDED_GETOPT_PORT_H
+#endif // GETOPT_H