BOX2D compiler error on bada. The error is '::sprintf' has not been declared

bada SDK is 1.2.1

/usr/include/c**/4.4/cstdio:107: error: ‘::fprintf’ has not been declared
/usr/include/c**/4.4/cstdio:108: error: ‘::fputc’ has not been declared
/usr/include/c**/4.4/cstdio:109: error: ‘::fputs’ has not been declared
/usr/include/c**/4.4/cstdio:112: error: ‘::fscanf’ has not been declared
/usr/include/c**/4.4/cstdio:116: error: ‘::fwrite’ has not been declared
/usr/include/c**/4.4/cstdio:121: error: ‘::printf’ has not been declared
/usr/include/c**/4.4/cstdio:122: error: ‘::putc’ has not been declared
/usr/include/c**/4.4/cstdio:123: error: ‘::putchar’ has not been declared
/usr/include/c**/4.4/cstdio:124: error: ‘::puts’ has not been declared
/usr/include/c**/4.4/cstdio:128: error: ‘::scanf’ has not been declared
/usr/include/c**/4.4/cstdio:131: error: ‘::sprintf’ has not been declared
/usr/include/c**/4.4/cstdio:132: error: ‘::sscanf’ has not been declared
/usr/include/c**/4.4/cstdio:136: error: ‘::vfprintf’ has not been declared
/usr/include/c**/4.4/cstdio:137: error: ‘::vprintf’ has not been declared
/usr/include/c**/4.4/cstdio:138: error: ‘::vsprintf’ has not been declared
/usr/include/c**/4.4/cstdio:165: error: ‘::snprintf’ has not been declared
/usr/include/c**/4.4/cstdio:166: error: ‘::vfscanf’ has not been declared
/usr/include/c**/4.4/cstdio:167: error: ‘::vscanf’ has not been declared
/usr/include/c**/4.4/cstdio:168: error: ‘::vsnprintf’ has not been declared
/usr/include/c**/4.4/cstdio:169: error: ‘::vsscanf’ has not been declared
/usr/include/c**/4.4/cstdio:176: error: ‘gnu_cxx::snprintf’ has not been declared
/usr/include/c++/4.4/cstdio:177: error: ‘gnu_cxx::vfscanf’ has not been declared
/usr/include/c
/4.4/cstdio:178: error: ‘*gnu_cxx::vscanf’ has not been declared
/usr/include/c++/4.4/cstdio:179: error: ‘*gnu_cxx::vsnprintf’ has not been declared
/usr/include/c++/4.4/cstdio:180: error: ‘__gnu_cxx::vsscanf’ has not been declared

my solution is change cstdio to stdio.h.
It’s need modify Box2D/Collision/b2TimeOfImpact.cpp and Box2D/Common/b2Settings.cpp

Is there a other good solution?

cocos2d-x bada port was tested under bada sdk 1.0.0 and sdk 2.0.2, and I searched ‘cstdio’ file in ‘bada\1.2.1\Tools\Toolchains’ folder, I couldn’t find /usr/include/c++/4.4/cstdio file.

I tested it by using bada sdk 1.2.1. The problem does actually exists. It is a good way to fix this issue by using ‘stdio.h’ instead of ‘cstdio’.