X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Fapplication%2Fcommand_line.cpp;h=f132867f8e500d9005b539fe564c5f575fd706e0;hb=694e3381a805d240bd355886088d90cb25e1bb25;hp=de6d611092a0a53c1397920f8e5cbf48e794b1ef;hpb=6fd0c83fb2f5fed78bc0014f912e77a0963bb962;p=feisty_meow.git diff --git a/nucleus/library/application/command_line.cpp b/nucleus/library/application/command_line.cpp index de6d6110..f132867f 100644 --- a/nucleus/library/application/command_line.cpp +++ b/nucleus/library/application/command_line.cpp @@ -74,7 +74,7 @@ command_parameter &command_parameter::operator = // the default is a dash (-), while for DOS most programs use forward-slash // (/). Adding more characters is trivial; just add a character to the list // before the sentinel of '\0'. -#if defined(_MSC_VER) || defined(__MINGW32__) +#if defined(_MSC_VER) || defined(__MINGW32__) || defined(__WIN32__) static char option_prefixes[] = { '-', '/', '\0' }; #elif defined(__UNIX__) static char option_prefixes[] = { '-', '\0' }; @@ -244,7 +244,7 @@ string_array command_line::get_command_line() // the temporary string below can be given a flat formatting of the commands // and it will be popped out into a list of arguments. astring temporary; -#ifdef __UNIX__ +#if defined(__UNIX__) || defined(__GNU_WINDOWS__) if (!_global_argc || !_global_argv) { // our global parameters have not been set, so we must calculate them. temporary = application_configuration::get_cmdline_from_proc(); @@ -257,7 +257,7 @@ string_array command_line::get_command_line() // we don't need a long string to be parsed; the list is ready. return listo_cmds; } -#elif defined(__WIN32__) +#elif defined(_MSC_VER) // we have easy access to the original list of commands. for (int i = 0; i < _global_argc; i++) { // add a string entry for each argument.