only use __forceinline for VC++ 6.0

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7006 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-03-30 22:30:42 +00:00
parent 597acb605c
commit 54d68b7174

View File

@@ -208,7 +208,7 @@ struct WXDLLEXPORT wxStringData
// VC++ will refuse to inline this function but profiling shows that it // VC++ will refuse to inline this function but profiling shows that it
// is wrong // is wrong
#if defined(__VISUALC__) && defined(__WIN32__) #if defined(__VISUALC__) && (__VISUALC__ >= 1200)
__forceinline __forceinline
#endif #endif
void Unlock() { if ( !IsEmpty() && --nRefs == 0) free(this); } void Unlock() { if ( !IsEmpty() && --nRefs == 0) free(this); }