Move get_Command_line_args function into WIN32 define macro (to allow building on Linux).
This commit is contained in:
parent
110857949d
commit
fa4d1be9c4
@ -3011,6 +3011,8 @@ int main(char**args,const int argn)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifndef _DEBUG
|
||||
#ifdef _WIN32
|
||||
void get_command_line_args( int * argc, char *** argv )
|
||||
{
|
||||
// Get the command line arguments as wchar_t strings
|
||||
@ -3035,9 +3037,6 @@ void get_command_line_args( int * argc, char *** argv )
|
||||
}
|
||||
(*argv)[*argc] = NULL;
|
||||
}
|
||||
|
||||
#ifndef _DEBUG
|
||||
#ifdef _WIN32
|
||||
int CALLBACK WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nCmdShow){
|
||||
int argc;
|
||||
char ** argv;
|
||||
|
Loading…
x
Reference in New Issue
Block a user