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 ()
|
||||
{
|
||||
#ifdef _MSC_VER
|
||||
optarg = nullptr;
|
||||
optind = 0;
|
||||
#ifdef _MSC_VER
|
||||
next = nullptr;
|
||||
#else
|
||||
optreset = 1;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user