Some fixes for getopt_long

This commit is contained in:
px4dev
2012-09-10 00:16:30 -07:00
parent 68d4a26b9e
commit b1767480d2
3 changed files with 17 additions and 14 deletions
+6 -4
View File
@@ -121,11 +121,13 @@ extern "C"
extern int optopt;
/* function prototypes */
#if 0
int getopt (int argc, char **argv, char *optstring);
int getopt_long (int argc, char **argv, char *shortopts,
GETOPT_LONG_OPTION_T * longopts, int *longind);
int getopt_long_only (int argc, char **argv, char *shortopts,
GETOPT_LONG_OPTION_T * longopts, int *longind);
#endif
int getopt_long (int argc, char **argv, const char *shortopts,
const GETOPT_LONG_OPTION_T * longopts, int *longind);
int getopt_long_only (int argc, char **argv, const char *shortopts,
const GETOPT_LONG_OPTION_T * longopts, int *longind);
#ifdef __cplusplus
};