From 0efd9386568600205373df85341b3c14fe24accf Mon Sep 17 00:00:00 2001 From: weidai Date: Mon, 11 Dec 2006 09:13:12 +0000 Subject: improved method of disable inlining, fix compile on NetBSD --- factory.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'factory.h') diff --git a/factory.h b/factory.h index 67c97688..50e4313a 100644 --- a/factory.h +++ b/factory.h @@ -65,8 +65,7 @@ public: return factory->CreateObject(); } - // VC60 workaround: use "..." to prevent this function from being inlined - static ObjectFactoryRegistry & Registry(...); + CRYPTOPP_NOINLINE static ObjectFactoryRegistry & Registry(CRYPTOPP_NOINLINE_DOTDOTDOT); private: // use void * instead of ObjectFactory * to save code size @@ -75,7 +74,7 @@ private: }; template -ObjectFactoryRegistry & ObjectFactoryRegistry::Registry(...) +ObjectFactoryRegistry & ObjectFactoryRegistry::Registry(CRYPTOPP_NOINLINE_DOTDOTDOT) { static ObjectFactoryRegistry s_registry; return s_registry; -- cgit v1.2.1