Skip to content

Commit 29e50a8

Browse files
authored
remove extern "C" from base/base64.h for avoiding base64 function symbols conflict at linking libraries. (#20276) (#20280)
1 parent 4914dff commit 29e50a8

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Diff for: cocos/base/base64.h

-7
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ THE SOFTWARE.
2929
/// @cond DO_NOT_SHOW
3030

3131
#include "platform/CCPlatformMacros.h"
32-
33-
#ifdef __cplusplus
34-
extern "C" {
35-
#endif
3632

3733
namespace cocos2d {
3834

@@ -62,9 +58,6 @@ int CC_DLL base64Encode(const unsigned char *in, unsigned int inLength, char **o
6258

6359
}//namespace cocos2d
6460

65-
#ifdef __cplusplus
66-
}
67-
#endif
6861

6962
/// @endcond
7063
#endif // __SUPPORT_BASE64_H__

0 commit comments

Comments
 (0)