]> www.ginac.de Git - ginac.git/commitdiff
[BUGFIX] calchhash(): work around broken RTTI on MacOS.
authorSatoshi Adachi <pegasib0@gmail.com>
Fri, 2 Aug 2024 08:00:16 +0000 (10:00 +0200)
committerRichard Kreckel <kreckel@ginac.de>
Fri, 2 Aug 2024 08:08:22 +0000 (10:08 +0200)
Use workaround from 0256e2fe48a0 also if __APPLE__ is defined.

ginac/hash_seed.h

index 9b163cf86010952ab40289682763657228842ef2..c978372626c1a5b92db044cad35921b6e18a5070 100644 (file)
@@ -8,7 +8,7 @@
 #include <typeinfo>
 #include <cstring>
 #include "utils.h"
-#ifdef _WIN32
+#if defined(_WIN32) || defined(__APPLE__)
 #define GINAC_HASH_USE_MANGLED_NAME 1
 #endif