mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-04 20:20:54 +00:00
Remove __WCHAR_UNSIGNED__ and anything that used it.
llvm-svn: 140155
This commit is contained in:
parent
9cb1fc034b
commit
5507159245
@ -556,9 +556,6 @@ static void InitializePredefinedMacros(const TargetInfo &TI,
|
||||
if (!TargetInfo::isTypeSigned(TI.getWIntType()))
|
||||
Builder.defineMacro("__WINT_UNSIGNED__");
|
||||
|
||||
if (!TargetInfo::isTypeSigned(TI.getWCharType()))
|
||||
Builder.defineMacro("__WCHAR_UNSIGNED__");
|
||||
|
||||
// Define exact-width integer types for stdint.h
|
||||
Builder.defineMacro("__INT" + Twine(TI.getCharWidth()) + "_TYPE__",
|
||||
"char");
|
||||
|
@ -5,11 +5,5 @@
|
||||
|
||||
const bool swchar = (wchar_t)-1 > (wchar_t)0;
|
||||
|
||||
#ifdef __WCHAR_UNSIGNED__
|
||||
int signed_test[!swchar];
|
||||
#else
|
||||
int signed_test[swchar];
|
||||
#endif
|
||||
|
||||
int max_test[WCHAR_MAX == (swchar ? -(WCHAR_MIN+1) : (wchar_t)-1)];
|
||||
int min_test[WCHAR_MIN == (swchar ? 0 : -WCHAR_MAX-1)];
|
||||
|
Loading…
Reference in New Issue
Block a user