X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7bac0684f586a7d2a0601f57407402a735bc75b0..85284ca4b226d9a1ab6bed26c5eaa480543649d5:/src/common/base64.cpp diff --git a/src/common/base64.cpp b/src/common/base64.cpp index 2832bffb3b..8ac4ebcadf 100644 --- a/src/common/base64.cpp +++ b/src/common/base64.cpp @@ -9,6 +9,10 @@ #include "wx/wxprec.h" +#ifdef __BORLANDC__ + #pragma hdrstop +#endif + #if wxUSE_BASE64 #include "wx/base64.h" @@ -18,7 +22,7 @@ wxBase64Encode(char *dst, size_t dstLen, const void *src_, size_t srcLen) { wxCHECK_MSG( src_, wxCONV_FAILED, _T("NULL input buffer") ); - const unsigned char *src = wx_static_cast(const unsigned char *, src_); + const unsigned char *src = static_cast(src_); static const char b64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; @@ -71,7 +75,7 @@ wxBase64Decode(void *dst_, size_t dstLen, { wxCHECK_MSG( src, wxCONV_FAILED, _T("NULL input buffer") ); - unsigned char *dst = wx_static_cast(unsigned char *, dst_); + unsigned char *dst = static_cast(dst_); size_t decLen = 0; @@ -118,7 +122,7 @@ wxBase64Decode(void *dst_, size_t dstLen, const char *p; for ( p = src; srcLen; p++, srcLen-- ) { - const unsigned char c = decode[wx_static_cast(unsigned char, *p)]; + const unsigned char c = decode[static_cast(*p)]; switch ( c ) { case WSP: