From: Eduardo DAVILA Date: Thu, 9 Sep 2021 09:17:28 +0000 (+0200) Subject: #3385 macOS compatibility X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=8b8d2d5dd6bec5b67e64dc589174d63a0aae2180;p=crea.git #3385 macOS compatibility --- diff --git a/src/creaRTTI.cxx b/src/creaRTTI.cxx index 872d64b..a89d2bd 100644 --- a/src/creaRTTI.cxx +++ b/src/creaRTTI.cxx @@ -65,11 +65,11 @@ namespace crea -// #if __APPLE__ -// //EED2018-08-28 Be careful #include is not complete (CommandLine mechanisme Xcode) -// printf("EED creaRTTI run_time_up_or_down_cast 2018-08-28 Warnning !!!! Apple cast missing __do_upcast "); -// return source_pointer; -// #else +#if __APPLE__ + // //EED2018-08-28 Be careful #include is not complete (CommandLine mechanisme Xcode) + printf("EED creaRTTI run_time_up_or_down_cast 2018-08-28 Warnning !!!! Apple cast missing __do_upcast "); + return source_pointer; +#else #if __GNUC__ > 3 || \ (__GNUC__ == 3 && (__GNUC_MINOR__ > 1 || \ (__GNUC_MINOR__ == 1 && \ @@ -95,7 +95,7 @@ namespace crea #endif return target_pointer; -// #endif +#endif // __APPLE__