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:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user