#ifndef _GEOM_ADVANCEDENGINE_HXX_
#define _GEOM_ADVANCEDENGINE_HXX_
-#ifdef WNT
+#ifdef WIN32
#if defined ADVANCEDENGINE_EXPORTS || defined AdvancedEngine_EXPORTS
- #if defined WIN32
#define ADVANCEDENGINE_EXPORT __declspec( dllexport )
- #else
- #define ADVANCEDENGINE_EXPORT
- #endif
#else
- #if defined WIN32
#define ADVANCEDENGINE_EXPORT __declspec( dllimport )
- #else
- #define ADVANCEDENGINE_EXPORT
- #endif
- #endif
+ #endif
#else
- #define ADVANCEDENGINE_EXPORT
+ #define ADVANCEDENGINE_EXPORT
#endif
-#endif
+#endif
\ No newline at end of file
#include <TCollection_AsciiString.hxx>
#include <TopoDS_Shape.hxx>
-#ifdef WNT
- #if defined BREPEXPORT_EXPORTS || defined BREPExport_EXPORTS
- #if defined WIN32
- #define BREPEXPORT_EXPORT __declspec( dllexport )
+#ifdef WIN32
+ #if defined BREPEXPORT_EXPORTS || defined BREPExport_EXPORTS
+ #define BREPEXPORT_EXPORT __declspec( dllexport )
#else
- #define BREPEXPORT_EXPORT
+ #define BREPEXPORT_EXPORT __declspec( dllimport )
#endif
- #else
- #if defined WIN32
- #define BREPEXPORT_EXPORT __declspec( dllimport )
- #else
- #define BREPEXPORT_EXPORT
- #endif
- #endif
#else
- #define BREPEXPORT_EXPORT
+ #define BREPEXPORT_EXPORT
#endif
//=============================================================================
#include <TopoDS_Shape.hxx>
#include <TDF_Label.hxx>
-#ifdef WNT
- #if defined BREPIMPORT_EXPORTS || defined BREPImport_EXPORTS
- #if defined WIN32
- #define BREPIMPORT_EXPORT __declspec( dllexport )
+#ifdef WIN32
+ #if defined BREPIMPORT_EXPORTS || defined BREPImport_EXPORTS
+ #define BREPIMPORT_EXPORT __declspec( dllexport )
#else
- #define BREPIMPORT_EXPORT
+ #define BREPIMPORT_EXPORT __declspec( dllimport )
#endif
- #else
- #if defined WIN32
- #define BREPIMPORT_EXPORT __declspec( dllimport )
- #else
- #define BREPIMPORT_EXPORT
- #endif
- #endif
#else
- #define BREPIMPORT_EXPORT
+ #define BREPIMPORT_EXPORT
#endif
//=============================================================================
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#ifdef WNT
+#ifdef WIN32
#pragma warning( disable:4786 )
#endif
#include <TColStd_ListIteratorOfListOfInteger.hxx>
#include <TColStd_ListOfInteger.hxx>
-#ifdef WNT
+#ifdef WIN32
#pragma warning( disable : 4101)
#endif
#include <TopAbs.hxx>
#include <TopTools_IndexedMapOfShape.hxx>
-#ifdef WNT
+#ifdef WIN32
#include <process.h>
#else
#include <unistd.h>
GEOM_Client::GEOM_Client()
{
pid_client =
-#ifdef WNT
+#ifdef WIN32
(long)_getpid();
#else
(long)getpid();
#include <Standard_Macro.hxx>
#endif
-#ifdef WNT
- #if defined GEOMCLIENT_EXPORTS || defined GEOMClient_EXPORTS
- #if defined WIN32
- #define GEOMCLIENT_EXPORT __declspec( dllexport )
+#ifdef WIN32
+ #if defined GEOMCLIENT_EXPORTS || defined GEOMClient_EXPORTS
+ #define GEOMCLIENT_EXPORT __declspec( dllexport )
#else
- #define GEOMCLIENT_EXPORT
+ #define GEOMCLIENT_EXPORT __declspec( dllimport )
#endif
- #else
- #if defined WIN32
- #define GEOMCLIENT_EXPORT __declspec( dllimport )
- #else
- #define GEOMCLIENT_EXPORT
- #endif
- #endif
#else
- #define GEOMCLIENT_EXPORT
+ #define GEOMCLIENT_EXPORT
#endif
#include <TCollection_AsciiString.hxx>
{
if ( !myGUIMap.contains( libraryName ) ) {
// try to load library if it is not loaded yet
-#ifndef WNT
+#ifndef WIN32
QString dirs = getenv( "LD_LIBRARY_PATH" );
QString sep = ":";
#else
{
if ( !myGUIMap.contains( libraryName ) ) {
// try to load library if it is not loaded yet
-#ifndef WNT
+#ifndef WIN32
QString dirs = getenv( "LD_LIBRARY_PATH" );
QString sep = ":";
#else
GEOMPluginGUI* library = 0;
if ( !libName.isEmpty() ) {
-#ifndef WNT
+#ifndef WIN32
libName = QString( "lib" ) + libName + ".so";
#else
libName = libName + ".dll";
GEOMGUI* library = 0;
if ( !libName.isEmpty() ) {
-#ifndef WNT
+#ifndef WIN32
libName = QString( "lib" ) + libName + ".so";
#else
libName = libName + ".dll";
#include <Standard_Failure.hxx>
-#ifdef WNT
+#ifdef WIN32
#include <windows.h>
#else
#include <dlfcn.h>
#endif
-#ifdef WNT
+#ifdef WIN32
#define LibHandle HMODULE
#define LoadLib( name ) LoadLibrary( name )
#define GetProc GetProcAddress
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#ifdef WNT
+#ifdef WIN32
#pragma warning( disable:4786 )
#endif
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#ifdef WNT
+#ifdef WIN32
#pragma warning( disable:4786 )
#endif
// See http://www.salome-platform.org/ or email : webmaster.salome@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, ...
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#ifdef WNT
+#ifdef WIN32
#pragma warning( disable:4786 )
#endif
aKey += aMode;
if (myResMgr->Find(aKey.ToCString())) {
TCollection_AsciiString aLibName (myResMgr->Value(aKey.ToCString()));
-#ifndef WNT
+#ifndef WIN32
aLibName += ".so";
#else
aLibName += ".dll";
// Initialize the Resource Manager
TCollection_AsciiString aNull;
aResDir = TCollection_AsciiString(getenv("GEOM_ROOT_DIR"));
-#ifdef WNT
+#ifdef WIN32
aResDir += "\\share\\salome\\resources\\geom";
#else
aResDir += "/share/salome/resources/geom";
else
{
aUserResDir = getenv("HOME");
-#ifdef WNT
+#ifdef WIN32
aUserResDir += "\\.salome\\resources";
#else
aUserResDir += "/.salome/resources";
#include <Standard_Failure.hxx>
#include <StdFail_NotDone.hxx>
-#ifdef WNT
+#ifdef WIN32
#include <windows.h>
#else
#include <dlfcn.h>
#endif
-#ifdef WNT
+#ifdef WIN32
#define LibHandle HMODULE
#define LoadLib( name ) LoadLibrary( name )
#define GetProc GetProcAddress
#ifndef _GEOM_GEOMImpl_HXX_
#define _GEOM_GEOMImpl_HXX_
-#ifdef WNT
- #if defined GEOMIMPL_EXPORTS || defined GEOMImpl_EXPORTS
- #if defined WIN32
- #define GEOMIMPL_EXPORT __declspec( dllexport )
+#ifdef WIN32
+ #if defined GEOMIMPL_EXPORTS || defined GEOMImpl_EXPORTS
+ #define GEOMIMPL_EXPORT __declspec( dllexport )
#else
- #define GEOMIMPL_EXPORT
+ #define GEOMIMPL_EXPORT __declspec( dllimport )
#endif
#else
- #if defined WIN32
- #define GEOMIMPL_EXPORT __declspec( dllimport )
- #else
- #define GEOMIMPL_EXPORT
- #endif
- #endif
-#else
- #define GEOMIMPL_EXPORT
+ #define GEOMIMPL_EXPORT
#endif
#endif
myTypeGroup->button( 0 )->setChecked( true );
myWGStack->setCurrentIndex( 0 );
myStdTypeCombo->setCurrentIndex( (int)type - 1 );
-#ifdef WNT
+#ifdef WIN32
int asize = max( (int)GEOM::MS_10, min( (int)GEOM::MS_70, (int)size ) );
#else
int asize = std::max( (int)GEOM::MS_10, std::min( (int)GEOM::MS_70, (int)size ) );
#ifndef _GEOM_ToolsGUI_HXX_
#define _GEOM_ToolsGUI_HXX_
-#ifdef WNT
- #if defined GEOMTOOLSGUI_EXPORTS || defined GEOMToolsGUI_EXPORTS
- #if defined WIN32
- #define GEOMTOOLSGUI_EXPORT __declspec( dllexport )
+#ifdef WIN32
+ #if defined GEOMTOOLSGUI_EXPORTS || defined GEOMToolsGUI_EXPORTS
+ #define GEOMTOOLSGUI_EXPORT __declspec( dllexport )
#else
- #define GEOMTOOLSGUI_EXPORT
+ #define GEOMTOOLSGUI_EXPORT __declspec( dllimport )
#endif
- #else
- #if defined WIN32
- #define GEOMTOOLSGUI_EXPORT __declspec( dllimport )
- #else
- #define GEOMTOOLSGUI_EXPORT
- #endif
- #endif
#else
- #define GEOMTOOLSGUI_EXPORT
+ #define GEOMTOOLSGUI_EXPORT
#endif
-#endif
+#endif //_GEOM_ToolsGUI_HXX_
#include <typeinfo>
#endif
-#ifdef WNT
+#ifdef WIN32
#pragma warning( disable:4786 )
#endif
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#ifdef WNT
+#ifdef WIN32
#pragma warning( disable:4786 )
#endif
#include <TCollection_ExtendedString.hxx>
#include <TColStd_HArray1OfReal.hxx>
-#ifdef WNT
+#ifdef WIN32
#pragma warning( disable:4786 )
#endif
#ifndef _GEOM_GEOM_I_HXX_
#define _GEOM_GEOM_I_HXX_
-#ifdef WNT
- #if defined GEOM_I_EXPORTS || defined GEOMEngine_EXPORTS
- #if defined WIN32
- #define GEOM_I_EXPORT __declspec( dllexport )
+#ifdef WIN32
+ #if defined GEOM_I_EXPORTS || defined GEOMEngine_EXPORTS
+ #define GEOM_I_EXPORT __declspec( dllexport )
#else
- #define GEOM_I_EXPORT
- #endif
- #else
- #if defined WIN32
- #define GEOM_I_EXPORT __declspec( dllimport )
- #else
- #define GEOM_I_EXPORT
+ #define GEOM_I_EXPORT __declspec( dllimport )
#endif
- #endif
#else
- #define GEOM_I_EXPORT
+ #define GEOM_I_EXPORT
#endif
-#endif
+#endif //_GEOM_GEOM_I_HXX_
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-#ifdef WNT
+#ifdef WIN32
#pragma warning( disable:4786 )
#endif
#include <set>
#include <sstream>
-#ifdef WNT
+#ifdef WIN32
#include <windows.h>
#include <process.h>
#else
#include <dlfcn.h>
#endif
-#ifdef WNT
+#ifdef WIN32
#define LibHandle HMODULE
#define LoadLib( name ) LoadLibrary( name )
#define GetProc GetProcAddress
// OCCT BUG: cannot save a document (in current folder)
// if directory name is empty
if (aTmpDir.size() == 0) {
-#ifdef WNT
+#ifdef WIN32
aTmpDir = ".\\";
#else
aTmpDir = "./";
// OCCT BUG: cannot load a document (from current folder)
// if directory name is empty
if (aTmpDir.size() == 0) {
-#ifdef WNT
+#ifdef WIN32
aTmpDir = ".\\";
#else
aTmpDir = "./";
throw ( SALOME::SALOME_Exception )
{
std::string aPlatformLibName;
-#ifdef WNT
+#ifdef WIN32
aPlatformLibName = theLibName;
aPlatformLibName += ".dll" ;
#else
LibHandle libHandle = LoadLib( aPlatformLibName.c_str()/*theLibName*/ );
if (!libHandle) {
// report any error, if occured
-#ifndef WNT
+#ifndef WIN32
const char* anError = dlerror();
throw(SALOME_Exception(anError));
#else
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#ifdef WNT
+#ifdef WIN32
#pragma warning( disable:4786 )
#endif
#include <typeinfo>
#endif
-#ifdef WNT
+#ifdef WIN32
#pragma warning( disable:4786 )
#endif
#include <Standard_Failure.hxx>
-#ifdef WNT
- #if defined IGESEXPORT_EXPORTS || defined IGESExport_EXPORTS
- #if defined WIN32
- #define IGESEXPORT_EXPORT __declspec( dllexport )
+#ifdef WIN32
+ #if defined IGESEXPORT_EXPORTS || defined IGESExport_EXPORTS
+ #define IGESEXPORT_EXPORT __declspec( dllexport )
#else
- #define IGESEXPORT_EXPORT
+ #define IGESEXPORT_EXPORT __declspec( dllimport )
#endif
- #else
- #if defined WIN32
- #define IGESEXPORT_EXPORT __declspec( dllimport )
- #else
- #define IGESEXPORT_EXPORT
- #endif
- #endif
#else
- #define IGESEXPORT_EXPORT
+ #define IGESEXPORT_EXPORT
#endif
//=============================================================================
#include <Standard_ErrorHandler.hxx> // CAREFUL ! position of this file is critic : see Lucien PIGNOLONI / OCC
-#ifdef WNT
- #if defined IGESIMPORT_EXPORTS || defined IGESImport_EXPORTS
- #if defined WIN32
- #define IGESIMPORT_EXPORT __declspec( dllexport )
+#ifdef WIN32
+ #if defined IGESIMPORT_EXPORTS || defined IGESImport_EXPORTS
+ #define IGESIMPORT_EXPORT __declspec( dllexport )
#else
- #define IGESIMPORT_EXPORT
+ #define IGESIMPORT_EXPORT __declspec( dllimport )
#endif
- #else
- #if defined WIN32
- #define IGESIMPORT_EXPORT __declspec( dllimport )
- #else
- #define IGESIMPORT_EXPORT
- #endif
- #endif
#else
- #define IGESIMPORT_EXPORT
+ #define IGESIMPORT_EXPORT
#endif
//=============================================================================
//=====================================================================================
extern "C"
{
-#ifdef WNT
+#ifdef WIN32
__declspec( dllexport )
#endif
GEOMGUI* GetLibGUI( GeometryGUI* parent )
//=====================================================================================
extern "C"
{
-#ifdef WNT
+#ifdef WIN32
__declspec( dllexport )
#endif
GEOMGUI* GetLibGUI( GeometryGUI* parent )
#include <TCollection_AsciiString.hxx>
#include <TopoDS_Shape.hxx>
-#ifdef WNT
- #if defined STEPEXPORT_EXPORTS || defined STEPExport_EXPORTS
- #if defined WIN32
- #define STEPEXPORT_EXPORT __declspec( dllexport )
+#ifdef WIN32
+ #if defined STEPEXPORT_EXPORTS || defined STEPExport_EXPORTS
+ #define STEPEXPORT_EXPORT __declspec( dllexport )
#else
- #define STEPEXPORT_EXPORT
+ #define STEPEXPORT_EXPORT __declspec( dllimport )
#endif
- #else
- #if defined WIN32
- #define STEPEXPORT_EXPORT __declspec( dllimport )
- #else
- #define STEPEXPORT_EXPORT
- #endif
- #endif
#else
- #define STEPEXPORT_EXPORT
+ #define STEPEXPORT_EXPORT
#endif
//=============================================================================
#include <Standard_Failure.hxx>
#include <Standard_ErrorHandler.hxx> // CAREFUL ! position of this file is critic : see Lucien PIGNOLONI / OCC
-#ifdef WNT
- #if defined STEPIMPORT_EXPORTS || defined STEPImport_EXPORTS
- #if defined WIN32
- #define STEPIMPORT_EXPORT __declspec( dllexport )
+#ifdef WIN32
+ #if defined STEPIMPORT_EXPORTS || defined STEPImport_EXPORTS
+ #define STEPIMPORT_EXPORT __declspec( dllexport )
#else
- #define STEPIMPORT_EXPORT
+ #define STEPIMPORT_EXPORT __declspec( dllimport )
#endif
- #else
- #if defined WIN32
- #define STEPIMPORT_EXPORT __declspec( dllimport )
- #else
- #define STEPIMPORT_EXPORT
- #endif
- #endif
#else
- #define STEPIMPORT_EXPORT
+ #define STEPIMPORT_EXPORT
#endif
//=============================================================================
//=====================================================================================
extern "C"
{
-#ifdef WNT
+#ifdef WIN32
__declspec( dllexport )
#endif
GEOMGUI* GetLibGUI( GeometryGUI* parent )