c++ - Typedef redefinition with different types ('uint_least16_t' (aka 'unsigned short') vs 'char16_t') -
my project contains swift 2.2, objective c , c++ xcode 7.3
i getting following errors in generated producmodulename-swift.h file
typedef redefinition different types ('uint_least16_t' (aka 'unsigned short') vs 'char16_t') typedef redefinition different types ('uint_least32_t' (aka 'unsigned int') vs 'char32_t')
at following section
if !defined(swift_typedefs) # define swift_typedefs 1 # if defined(__has_include) && __has_include(<uchar.h>) # include <uchar.h> # elif !defined(__cplusplus) || __cplusplus < 201103l typedef uint_least16_t char16_t; typedef uint_least32_t char32_t; # endif
i can bypass error changing c++ parms c++ 11 skip troublesome code.
however know if there cleaner solution this.
to clarify code above code xcode generates when compiling. have no control on code
Comments
Post a Comment