From 54d68b7174948f8fe932f3ede96595e022e79d01 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 30 Mar 2000 22:30:42 +0000 Subject: [PATCH] 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 --- include/wx/string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/string.h b/include/wx/string.h index 7969657cc3..6d8312f2ad 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -208,7 +208,7 @@ struct WXDLLEXPORT wxStringData // VC++ will refuse to inline this function but profiling shows that it // is wrong -#if defined(__VISUALC__) && defined(__WIN32__) +#if defined(__VISUALC__) && (__VISUALC__ >= 1200) __forceinline #endif void Unlock() { if ( !IsEmpty() && --nRefs == 0) free(this); }