X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FcreaRTTI.cxx;h=d997215854e40ab7802d1209c40893aea48b2400;hb=c08e99c2447c01473c687f3cd518304405f03d83;hp=635d9daddfcbd945ca0055bc841b2d7f0a2e62c1;hpb=0dde9f8a3d461f1421df8253efe8dad130c0b748;p=crea.git diff --git a/src/creaRTTI.cxx b/src/creaRTTI.cxx index 635d9da..d997215 100644 --- a/src/creaRTTI.cxx +++ b/src/creaRTTI.cxx @@ -62,43 +62,41 @@ 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 = "<