1
0
mirror of https://github.com/ScrelliCopter/tmx2gba.git synced 2025-02-21 03:29:25 +11:00

reset getopt state using the proper method on unices, fixes macos.

...honestly getopt sucks and I should replace it with something actually cross platform and less crude.
This commit is contained in:
2019-05-12 17:43:03 +10:00
parent 3f8d0d5d2e
commit 36edc285aa

View File

@@ -79,10 +79,12 @@ struct SParams
void GetoptClear () void GetoptClear ()
{ {
#ifdef _MSC_VER
optarg = nullptr; optarg = nullptr;
optind = 0; optind = 0;
#ifdef _MSC_VER
next = nullptr; next = nullptr;
#else
optreset = 1;
#endif #endif
} }