diff --git a/M2000.c b/M2000.c index ef1dd96..2b097a1 100644 --- a/M2000.c +++ b/M2000.c @@ -57,6 +57,10 @@ extern int SaveCPU; extern int videomode; static int CpuSpeed; +#ifdef ALLEGRO +#include +#endif +// Odd Allegro implementations have (had?) _argc _argv already declared (!?!??) static int _argc; static char *_argv[256]; static char MainConfigFile[MAX_CONFIG_FILE_SIZE]; @@ -75,6 +79,14 @@ static void _fixpath (char *old,char *new) } #endif +#ifdef _WIN32 +/* Get full path name, convert all backslashes to UNIX style slashes */ +static void _fixpath (char *old,char *new) +{ + strcpy (new,old); +} +#endif + /* Parse the command line options */ static int ParseOptions (int argc,char *argv[]) {