diff --git a/desmume/src/libretro-common/include/compat/getopt.h b/desmume/src/libretro-common/include/compat/getopt.h index 94414b54b..b235fe1aa 100644 --- a/desmume/src/libretro-common/include/compat/getopt.h +++ b/desmume/src/libretro-common/include/compat/getopt.h @@ -60,7 +60,17 @@ extern int optind, opterr, optopt; #ifdef __cplusplus } #endif + +/* If these are variously #defined, then we have bigger problems */ +#ifndef no_argument + #define no_argument 0 + #define required_argument 1 + #define optional_argument 2 #endif +/* HAVE_GETOPT_LONG */ +#endif + +/* pragma once */ #endif