@@ -235,18 +235,18 @@ int APIENTRY WinMain(HINSTANCE inst, HINSTANCE prior, LPSTR cmd, int show) {
235
235
REBCHR * * argv ;
236
236
App_Instance = inst ;
237
237
#else
238
- int main (int argc , REBCHR * * argv ) {
238
+ int main (int argc , char * * argv ) {
239
239
// Retrieves the window handle used by the console associated with the calling process
240
240
HWND hwndC = GetConsoleWindow ();
241
241
// Then we could just get the HINSTANCE:
242
242
App_Instance = GetModuleHandle (0 ); // HMODULE=HINSTANCE
243
243
#endif
244
244
// Fetch the win32 unicoded program arguments:
245
- argv = CommandLineToArgvW (GetCommandLineW (), & argc );
245
+ ( LPWSTR * ) argv = CommandLineToArgvW (GetCommandLineW (), & argc );
246
246
// Use title string as defined in resources file (.rc) with hardcoded ID 101
247
247
LoadStringW (App_Instance , 101 , App_Title , MAX_TITLE_LENGTH );
248
248
#else //non Windows platforms
249
- int main (int argc , REBCHR * * argv ) {
249
+ int main (int argc , char * * argv ) {
250
250
#endif
251
251
REBYTE vers [8 ];
252
252
REBINT n ;
@@ -257,7 +257,7 @@ int main(int argc, REBCHR **argv) {
257
257
258
258
Host_Lib = & Host_Lib_Init ;
259
259
260
- Parse_Args (argc , argv , & Main_Args );
260
+ Parse_Args (argc , ( REBCHR * * ) argv , & Main_Args );
261
261
262
262
vers [0 ] = 5 ; // len
263
263
RL_Version (& vers [0 ]);
0 commit comments