23 #ifndef __LIBRETRO_SDK_COMPAT_GETOPT_H 24 #define __LIBRETRO_SDK_COMPAT_GETOPT_H 26 #if defined(RARCH_INTERNAL) && defined(HAVE_CONFIG_H) 27 #include "../../../config.h" 34 #ifdef HAVE_GETOPT_LONG 39 #define getopt_long(argc, argv, optstring, longopts, longindex) __getopt_long_retro(argc, argv, optstring, longopts, longindex) 57 const char *optstring,
const struct option *longopts,
int *longindex);
66 #define required_argument 1 67 #define optional_argument 2 #define RETRO_BEGIN_DECLS
Definition: retro_common_api.h:41
int optopt
Definition: compat_getopt.c:41
int has_arg
Definition: getopt.h:48
int opterr
Definition: compat_getopt.c:41
int optind
Definition: compat_getopt.c:41
#define getopt_long(argc, argv, optstring, longopts, longindex)
Definition: getopt.h:39
#define RETRO_END_DECLS
Definition: retro_common_api.h:42
const char * name
Definition: getopt.h:47
char * optarg
Definition: compat_getopt.c:40
int val
Definition: getopt.h:50
int * flag
Definition: getopt.h:49