Paul-Louis Ageneau 71e5d2bf43 Define STATIC_GETOPT to client compilation on Windows 5 年之前
..
CMakeLists.txt 71e5d2bf43 Define STATIC_GETOPT to client compilation on Windows 5 年之前
LICENSE 5ddafb3142 Example under GPLv2 5 年之前
README-getopt-for-windows.md 42e79ce921 Command line options for example server client: 5 年之前
getopt.cpp 7188bc9d8d Minor compilation fixes 5 年之前
getopt.h ac8e02604d Swap out ancient getopt for a newer one and address review feedback. 5 年之前
main.cpp 7188bc9d8d Minor compilation fixes 5 年之前
parse_cl.cpp 71e5d2bf43 Define STATIC_GETOPT to client compilation on Windows 5 年之前
parse_cl.h 42e79ce921 Command line options for example server client: 5 年之前

README-getopt-for-windows.md

getopt-for-windows

getopt.h and getopt.c is very often used in linux, to make it easy for windows user, two files were extracted from glibc. In order to make it works properly in windows, some modification was done and you may compare the change using original source files. Enjoy it!

Source: https://github.com/Chunde/getopt-for-windows. IMPORTANT: getopt.[ch] are likely not safe for Linux due to conflict with existing getopt.[ch]. They are thus NOT in CMakeFiles.txt and instead both files are #include only on Windows.