mySigStates[i] = NULL;
}
-#ifndef WNT
+#ifndef WIN32
//================================ UNIX part ==================================================
#else
-//====================================== WNT part ====================================================
+//====================================== WIN32 part ====================================================
#include <OSD_WNT_1.hxx>
#include <process.h>
# define LIGHTAPP_EXPORT
#endif // WIN32
-#if defined WNT
+#if defined WIN32
#pragma warning ( disable:4251 )
#pragma warning ( disable:4786 )
#pragma warning ( disable:4503 )
// Created: 6/20/2005 18:39:45 PM
// Author: Natalia Donis
-#ifdef WNT
+#ifdef WIN32
// E.A. : On windows with python 2.6, there is a conflict
// E.A. : between pymath.h and Standard_math.h which define
// E.A. : some same symbols : acosh, asinh, ...
dynamic_cast<const LightApp_DataSubOwner*>( (*itr).operator->() );
if ( subOwner )
{
-//#ifndef WNT
+//#ifndef WIN32
if ( !theMap.IsBound( TCollection_AsciiString(subOwner->entry().toLatin1().data()) ) )
//#else
// if ( !theMap.IsBound( subOwner->entry().toLatin1().data() ) )
#include <Aspect_DisplayConnection.hxx>
#include <Graphic3d.hxx>
#include <Graphic3d_GraphicDriver.hxx>
-#ifdef WNT
+#ifdef WIN32
#include <WNT_Window.hxx>
#else
#include <Xw_Window.hxx>
WId winId )
{
Aspect_Handle aWindowHandle = (Aspect_Handle)winId;
-#ifdef WNT
+#ifdef WIN32
Handle(WNT_Window) viewWindow = new WNT_Window( aWindowHandle );
#else
Handle(Aspect_DisplayConnection) aDispConnection = view->Viewer()->Driver()->GetDisplayConnection();
if (aGraphicDriver.IsNull())
{
Handle(Aspect_DisplayConnection) aDisplayConnection;
-#ifndef WNT
+#ifndef WIN32
aDisplayConnection = new Aspect_DisplayConnection( displayName );
#else
aDisplayConnection = new Aspect_DisplayConnection();
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#if !defined WNT
+#if !defined WIN32
#define QT_CLEAN_NAMESPACE /* avoid definition of INT32 and INT8 */
#endif
#include <stdlib.h>
-#if !defined WNT
+#if !defined WIN32
#include <QX11Info>
#include <GL/glx.h>
#include <X11/Xlib.h>
*/
void OCCViewer_ViewPort::selectVisualId()
{
-#if !defined WNT
+#if !defined WIN32
XVisualInfo* pVisualInfo;
if ( QX11Info::display() )
{
#include "utilities.h"
-#if defined WNT
+#if defined WIN32
#include <WNT_Window.hxx>
#else
#include <Xw_Window.hxx>
*/
void OCCViewer_ViewPort3d::paintEvent( QPaintEvent* e )
{
-#ifndef WNT
+#ifndef WIN32
/* X11 : map before show doesn't work */
if ( !mapped( activeView() ) )
mapView( activeView() );
*/
void OCCViewer_ViewPort3d::resizeEvent( QResizeEvent* e )
{
-#ifdef WNT
+#ifdef WIN32
/* Win32 : map before first show to avoid flicker */
if ( !mapped( activeView() ) )
mapView( activeView() );
class QtxRectRubberBand;
class QtxPolyRubberBand;
-#ifdef WNT
+#ifdef WIN32
#pragma warning ( disable:4251 )
#endif
QtxPolyRubberBand* mypPolyRB;
};
-#ifdef WNT
+#ifdef WIN32
#pragma warning( default:4251 )
#endif
#include <cstring>
-#ifndef WNT
+#ifndef WIN32
# ifndef GLX_GLXEXT_LEGACY
# define GLX_GLXEXT_LEGACY
# endif
static PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC vglFramebufferRenderbufferEXT = NULL;
static PFNGLDELETERENDERBUFFERSEXTPROC vglDeleteRenderbuffersEXT = NULL;
-#ifndef WNT
+#ifndef WIN32
#define GL_GetProcAddress( x ) glXGetProcAddressARB( (const GLubyte*)x )
#else
#define GL_GetProcAddress( x ) wglGetProcAddress( (const LPCSTR)x )
// SALOME QxScene : build Supervisor viewer into desktop
//
-#ifdef WNT
+#ifdef WIN32
#if defined QXSCENE_EXPORTS || defined QxScene_EXPORTS
#define QXSCENE_EXPORT __declspec(dllexport)
#else
#define QXSCENE_EXPORT
#endif
-#ifdef WNT
+#ifdef WIN32
#pragma warning ( disable:4251 )
#endif
// File : SalomePy.cxx
// Author : Paul RASCLE, EDF
//
-#ifdef WNT
+#ifdef WIN32
// E.A. : On windows with python 2.6, there is a conflict
// E.A. : between pymath.h and Standard_math.h which define
// E.A. : some same symbols : acosh, asinh, ...
// ========================================================
// set dllexport type for Win platform
-#ifdef WNT
+#ifdef WIN32
#if defined SALOME_PYQT_LIGHT_EXPORTS || defined SalomePyQtGUILight_EXPORTS
#define SALOME_PYQT_LIGHT_EXPORT __declspec(dllexport)
#define SALOME_PYQT_LIGHT_EXPORT __declspec(dllimport)
#endif
-#else // WNT
-
+#else //
+ WIN32
#define SALOME_PYQT_LIGHT_EXPORT
-#endif // WNT
+#endif // WIN32
// ========================================================
// avoid warning messages
-#ifdef WNT
+#ifdef WIN32
#pragma warning (disable : 4786)
#pragma warning (disable : 4251)
#endif
// File : SalomePyQt.cxx
// Author : Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com)
-#ifdef WNT
+#ifdef WIN32
// E.A. : On windows with python 2.6, there is a conflict
// E.A. : between pymath.h and Standard_math.h which define
// E.A. : some same symbols : acosh, asinh, ...
class SUIT_ExceptionHandler;
-#ifdef WNT
+#ifdef WIN32
# if defined SUITAPP_EXPORTS || defined SUITApp_EXPORTS
# define SUITAPP_EXPORT __declspec(dllexport)
# else
#include <Python.h>
-#ifdef WNT
+#ifdef WIN32
# if defined SUITAPP_EXPORTS || defined SUITApp_EXPORTS
# define SUITAPP_EXPORT __declspec(dllexport)
# else
// Created: 10/22/2004 3:23:45 PM
// Author: Sergey LITONIN
-#ifdef WNT
+#ifdef WIN32
// E.A. : On windows with python 2.6, there is a conflict
// E.A. : between pymath.h and Standard_math.h which define
// E.A. : some same symbols : acosh, asinh, ...
// We disable FPE signal as it was in earlier versions of SALOME. It is enabled
// only in debug mode if the environment variable DISABLE_FPE is not set to 1.
bool raiseFPE;
-#if defined(_DEBUG_) | defined(_DEBUG) //the Last for WNT default settings
+#if defined(_DEBUG_) | defined(_DEBUG) //the Last for WIN32 default settings
raiseFPE = true;
char* envDisableFPE = getenv("DISABLE_FPE");
if (envDisableFPE && atoi(envDisableFPE))
#include <OSD_SharedLibrary.hxx>
#include <OSD_Function.hxx>
-#ifdef WNT
+#ifdef WIN32
# include <process.h>
#else
#include <unistd.h>
CORBA::Long SALOME_Session_i::getPID() {
return (CORBA::Long)
-#ifndef WNT
+#ifndef WIN32
getpid();
#else
_getpid();
#include <vtkCommand.h>
#include <vtkCellData.h>
-#ifndef WNT
+#ifndef WIN32
# ifndef GLX_GLXEXT_LEGACY
# define GLX_GLXEXT_LEGACY
# endif
static PFNGLDISABLEVERTEXATTRIBARRAYARBPROC vglDisableVertexAttribArrayARB = NULL;
-#ifndef WNT
+#ifndef WIN32
#define GL_GetProcAddress( x ) glXGetProcAddressARB( (const GLubyte*)x )
#else
#define GL_GetProcAddress( x ) wglGetProcAddress( (const LPCSTR)x )
#include "VTKViewer.h"
#include "VTKViewer_MarkerDef.h"
-#ifdef WNT
+#ifdef WIN32
#include <windows.h>
#endif