Move get_Command_line_args function into WIN32 define macro (to allow building on Linux).

mac-build
sigonasr2 6 months ago
parent 764fdfb06d
commit b46350ac78
  1. 5
      Adventures in Lestoria/AdventuresInLestoria.cpp

@ -3055,6 +3055,8 @@ int main(char**args,const int argn)
return 0; return 0;
} }
#ifndef _DEBUG
#ifdef _WIN32
void get_command_line_args( int * argc, char *** argv ) void get_command_line_args( int * argc, char *** argv )
{ {
// Get the command line arguments as wchar_t strings // Get the command line arguments as wchar_t strings
@ -3079,9 +3081,6 @@ void get_command_line_args( int * argc, char *** argv )
} }
(*argv)[*argc] = NULL; (*argv)[*argc] = NULL;
} }
#ifndef _DEBUG
#ifdef _WIN32
int CALLBACK WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nCmdShow){ int CALLBACK WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nCmdShow){
int argc; int argc;
char ** argv; char ** argv;

Loading…
Cancel
Save