* use std::weak_ptr * revert build/libcocos2d.vcxproj * fix mac & ios & android * declare variable in if block * revert build/libcocos2d.vcxproj