1
0
mirror of https://github.com/libretro/RetroArch synced 2025-04-01 22:20:31 +00:00

Use native getopt_long() on macOS

This commit is contained in:
Seth Kingsley 2016-12-17 16:56:40 -08:00
parent b1c6317ba5
commit b690fb2abc
2 changed files with 3 additions and 1 deletions
pkg/apple/RetroArch.xcodeproj
retroarch.c

@ -520,6 +520,7 @@
"-DHAVE_SHADERPIPELINE",
"-DHAVE_MMAP",
"-DHAVE_LIBRETRODB",
"-DHAVE_GETOPT_LONG",
);
PREBINDING = NO;
SDKROOT = macosx;
@ -573,6 +574,7 @@
"-DHAVE_SHADERPIPELINE",
"-DHAVE_MMAP",
"-DHAVE_LIBRETRODB",
"-DHAVE_GETOPT_LONG",
);
PREBINDING = NO;
SDKROOT = macosx;

@ -511,7 +511,7 @@ static void retroarch_parse_input(int argc, char *argv[])
int c = getopt_long(argc, argv, optstring, opts, NULL);
#if 0
RARCH_LOG("c is: %c, optarg is: [%s]\n", c, string_is_empty(optarg) ? "" : optarg);
fprintf(stderr, "c is: %c (%d), optarg is: [%s]\n", c, c, string_is_empty(optarg) ? "" : optarg);
#endif
if (c == -1)