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")
#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