diff --git a/spine-cocos2dx/src/spine/CCSkeletonAnimation.cpp b/spine-cocos2dx/src/spine/CCSkeletonAnimation.cpp index 1df696cb3..01fa754d1 100644 --- a/spine-cocos2dx/src/spine/CCSkeletonAnimation.cpp +++ b/spine-cocos2dx/src/spine/CCSkeletonAnimation.cpp @@ -42,7 +42,7 @@ using std::vector; namespace spine { -extern "C" static void callback (AnimationState* state, int trackIndex, EventType type, Event* event, int loopCount) { +static void callback (AnimationState* state, int trackIndex, EventType type, Event* event, int loopCount) { ((CCSkeletonAnimation*)state->context)->onAnimationStateEvent(trackIndex, type, event, loopCount); }