Giving it a plain ASCII string in an #if
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5211
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
FARPROC theProc = ::GetProcAddress
(
hModuleComCtl32,
+#if defined(__BORLANDC__) && (__BORLANDC__ <= 0x520)
+ "InitCommonControlsEx"
+#else
_T("InitCommonControlsEx")
+#endif
);
if ( !theProc )
theProc = ::GetProcAddress
(
hModuleComCtl32,
+#if defined(__BORLANDC__) && (__BORLANDC__ <= 0x520)
+ "InitializeFlatSB"
+#else
_T("InitializeFlatSB")
+#endif
);
if ( !theProc )
{
if ( hModKernel )
{
pfnSetProcessAffinityMask = (SETPROCESSAFFINITYMASK)
- ::GetProcAddress(hModKernel, _T("SetProcessAffinityMask"));
+ ::GetProcAddress(hModKernel,
+#if defined(__BORLANDC__) && (__BORLANDC__ <= 0x520)
+ "SetProcessAffinityMask");
+#else
+ _T("SetProcessAffinityMask"));
+#endif
}
// we've discovered a MT version of Win9x!