oce-7.5.0-clang.patch 766 B

12345678910111213
  1. diff -up oce-upstream-V7_5_0/src/Standard/Standard_Type.hxx.omv~ oce-upstream-V7_5_0/src/Standard/Standard_Type.hxx
  2. --- oce-upstream-V7_5_0/src/Standard/Standard_Type.hxx.omv~ 2022-01-09 01:03:31.512273977 +0100
  3. +++ oce-upstream-V7_5_0/src/Standard/Standard_Type.hxx 2022-01-09 01:03:38.866283692 +0100
  4. @@ -26,7 +26,7 @@
  5. // DEFINE_STANDARD_RTTI* macro is actually a base class.
  6. #if ! defined(OCCT_CHECK_BASE_CLASS)
  7. -#if (defined(__GNUC__) && ((__GNUC__ == 4 && __GNUC_MINOR__ >= 7) || (__GNUC__ > 4)))
  8. +#if (defined(__GNUC__) && ((__GNUC__ == 4 && __GNUC_MINOR__ >= 7) || (__GNUC__ > 4))) && !defined(__clang__)
  9. // For GCC 4.7+, more strict check is possible -- ensuring that base class
  10. // is direct base -- using non-standard C++ reflection functionality.