mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-23 18:14:06 +00:00
Fixed mingw build error. Modified function declaration in getopt.h.
A macro definition adds * in front of __argc and __argv, causing build error with mingw. Renamed them to argc and argv to prevent this.
This commit is contained in:
parent
6a12bc406d
commit
c46b75a0ca
|
@ -147,7 +147,11 @@ extern int getopt ();
|
|||
# endif /* __GNU_LIBRARY__ */
|
||||
|
||||
# ifndef __need_getopt
|
||||
extern int getopt_long (int __argc, char *const *__argv, const char *__shortopts,
|
||||
|
||||
// Notice: Originally argc and argv were named __argc and __argv
|
||||
// A macro definition added * in front of them both, causing
|
||||
// build error with mingw.
|
||||
extern int getopt_long (int argc, char *const *argv, const char *__shortopts,
|
||||
const struct option *__longopts, int *__longind);
|
||||
extern int getopt_long_only (int __argc, char *const *__argv,
|
||||
const char *__shortopts,
|
||||
|
|
Loading…
Reference in a new issue