Replace isupper with a macro in msvc
Use casting instead of a macro
Merge pull request #1276 from h2so5/replace-isupper-msvc

Replace isupper with a macro in msvc