]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
OCCT 7.0.0 porting
authormpa <mpa@opencascade.com>
Wed, 24 Feb 2016 13:37:09 +0000 (16:37 +0300)
committermpa <mpa@opencascade.com>
Wed, 24 Feb 2016 13:37:09 +0000 (16:37 +0300)
salome_adm/cmake_files/FindCAS.cmake
src/Basics/Basics_OCCTVersion.hxx

index 97c182714f925c1646c649bb0eaf94da2c97bbb0..3e9ac7588a8db5a8805f0163fb52efb44c1dba73 100644 (file)
@@ -61,8 +61,6 @@ IF(NOT WIN32)
  SET(CAS_DEFINITIONS "${CAS_DEFINITIONS} -DHAVE_CONFIG_H")
 ENDIF()
 
-SET(CAS_DEFINITIONS "${CAS_DEFINITIONS} -DOCC_CONVERT_SIGNALS")
-
 # Test for 64 bit machine:
 IF(CMAKE_SIZEOF_VOID_P STREQUAL 8)
   SET(CAS_DEFINITIONS "${CAS_DEFINITIONS} -D_OCC64")
index 2f9b49423e33a6b9bf28f9b370064825ab744fa8..abeef2a13c951043f00897a736f51c252c237be9 100644 (file)
@@ -28,6 +28,8 @@
 
 #include <Standard_Version.hxx>
 
+#include <Standard_DefineHandle.hxx>
+
 //
 // NOTE: Since version 6.7.0 OCC_VERSION_DEVELOPMENT macro in the Standard_Version.hxx
 // points to the development status of the OCCT version: for example "dev", "alpha",
 #  endif
 #endif
 
+// temporary code for backward compatibility with OCCT
+#if OCC_VERSION_MAJOR < 7
+  #define OCCT_DEFINE_STANDARD_RTTIEXT(C1,C2) DEFINE_STANDARD_RTTI(C1)
+  #define OCCT_IMPLEMENT_STANDARD_RTTIEXT(C1,C2) \
+          IMPLEMENT_STANDARD_HANDLE(C1,C2) \
+          IMPLEMENT_STANDARD_RTTIEXT(C1,C2)
+#else
+  #define OCCT_DEFINE_STANDARD_RTTIEXT(C1,C2) DEFINE_STANDARD_RTTIEXT(C1,C2)
+  #define OCCT_IMPLEMENT_STANDARD_RTTIEXT(C1,C2) IMPLEMENT_STANDARD_RTTIEXT(C1,C2)
+#endif
+
 #endif // BASICS_OCCTVERSION_HXX