X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FcreaRTTI.cxx;h=a89d2bdb8c3f789af521c73b764698ef9d714fb7;hb=51861648ce577c3a084dd4365017976db06c031d;hp=635d9daddfcbd945ca0055bc841b2d7f0a2e62c1;hpb=0dde9f8a3d461f1421df8253efe8dad130c0b748;p=crea.git diff --git a/src/creaRTTI.cxx b/src/creaRTTI.cxx index 635d9da..a89d2bd 100644 --- a/src/creaRTTI.cxx +++ b/src/creaRTTI.cxx @@ -62,44 +62,43 @@ namespace crea << " to " << TypeName(target_type) << std::endl); void* target_pointer = 0; -#if __GNUC__ > 3 || \ - (__GNUC__ == 3 && (__GNUC_MINOR__ > 1 || \ - (__GNUC_MINOR__ == 1 && \ - __GNUC_PATCHLEVEL__ > 0))) - - const abi::__class_type_info* targetTI = - (const abi::__class_type_info *)( &(target_type)); + + +#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 && \ + __GNUC_PATCHLEVEL__ > 0))) + const abi::__class_type_info* targetTI = (const abi::__class_type_info *)( &(target_type)); creaDebugMessage("info",7," * source = "<