// *******************************************************************
// read an init file
// *******************************************************************
-#ifdef WNT
+#ifdef _WIN32
extern console_semaphore_value volatile console_semaphore;
extern char console_command[1000];
#endif
static void ReadInitFile (const TCollection_AsciiString& theFileName)
{
TCollection_AsciiString aPath = theFileName;
-#ifdef WNT
+#ifdef _WIN32
if (!Draw_Batch) {
try {
aPath.ChangeAll ('\\', '/');
Sprintf (com, "source %s", aPath.ToCString());
Draw_Interprete (com);
delete [] com;
-#ifdef WNT
+#ifdef _WIN32
}
#endif
}
return PInd;
}
-#ifndef WNT
+#ifndef _WIN32
/*--------------------------------------------------------*\
| exitProc: finalization handler for Tcl/Tk thread. Forces parent process to die
\*--------------------------------------------------------*/
// *****************************************************************
// init X window and create display
// *****************************************************************
-#ifdef WNT
+#ifdef _WIN32
HWND hWnd = NULL;
#endif
if (!Draw_Batch)
-#ifdef WNT
+#ifdef _WIN32
Draw_Batch=!Init_Appli(hInst, hPrevInst, nShow, hWnd);
#else
Draw_Batch=!Init_Appli();
// *****************************************************************
Draw_InitAppli(theCommands);
-#ifndef WNT
+#ifndef _WIN32
Tcl_CreateExitHandler(exitProc, 0);
#endif
{
if (getenv ("CASROOT") == NULL)
{
-#ifdef WNT
+#ifdef _WIN32
ReadInitFile ("ddefault");
#else
cout << " the CASROOT variable is mandatory to Run OpenCascade "<< endl;
ReadInitFile (aRunFile);
// provide a clean exit, this is useful for some analysis tools
if ( ! isInteractiveForced )
-#ifndef WNT
+#ifndef _WIN32
return;
#else
ExitProcess(0);
Draw_Interprete (aCommand.ToCString());
// provide a clean exit, this is useful for some analysis tools
if ( ! isInteractiveForced )
-#ifndef WNT
+#ifndef _WIN32
return;
#else
ExitProcess(0);
// X loop
// *****************************************************************
if (XLoop) {
-#ifdef WNT
+#ifdef _WIN32
Run_Appli(hWnd);
#else
Run_Appli(Draw_Interprete);
cmd[i] = '\0';
} while (Draw_Interprete(cmd) != (unsigned int ) -2);
}
-#ifdef WNT
+#ifdef _WIN32
// Destruction de l'application
Destroy_Appli(hInst);
#endif
}
TCollection_AsciiString aPluginLibrary("");
-#ifndef WNT
+#ifndef _WIN32
aPluginLibrary += "lib";
#endif
aPluginLibrary += aPluginResource->Value(theKey.ToCString());
-#ifdef WNT
+#ifdef _WIN32
aPluginLibrary += ".dll";
#elif __APPLE__
aPluginLibrary += ".dylib";