X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c71498a1b70f9fc770b6242cc1dda8a6cc71f0fc..000c2be40d8e0231f6565ba2931f4c88add433d9:/src/common/xlocale.cpp diff --git a/src/common/xlocale.cpp b/src/common/xlocale.cpp index 24dca049ca..b1c08bade9 100644 --- a/src/common/xlocale.cpp +++ b/src/common/xlocale.cpp @@ -77,7 +77,9 @@ wxXLocale& wxXLocale::GetCLocale() { if ( !gs_cLocale ) { - gs_cLocale = new wxXLocale(static_cast(NULL)); + // NOTE: bcc551 has trouble doing static_cast with incomplete + // type definition. reinterpret_cast used as workaround + gs_cLocale = new wxXLocale( reinterpret_cast(NULL) ); } return *gs_cLocale;