Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only replace getopt on Windows, not any other platform
The preprocessor test was wrong, causing this code to be built (and potentially replace the system getopt/long) on all platforms. This made it impossible to build with -Werror=writable-strings on Unix without modifying this file further to fix its casting of static strings to mutable pointers.
- Loading branch information