I see some code like this in iOS project:
#ifdef __cplusplus
extern "C" {
#endif
……….//some function,struct
#ifdef __cplusplus
}
#endif
if there is C++ compiler and use C linkage,but if there isn’t C++ compiler then
use what?
And what is the reason of using this way in code?
Thanks!
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]