From 410cb0dc4ec930229e2884564c2c9e0f6406c0b6 Mon Sep 17 00:00:00 2001 From: Eldar Insafutdinov Date: Fri, 5 Nov 2010 22:40:36 +0000 Subject: [PATCH] fix building of ldc1 --- gen/functions.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gen/functions.cpp b/gen/functions.cpp index 3b149881..a6c84a29 100644 --- a/gen/functions.cpp +++ b/gen/functions.cpp @@ -513,6 +513,7 @@ void DtoDeclareFunction(FuncDeclaration* fdecl) gIR->dtors.push_back(fdecl); } } +#if DMDV2 // shared static ctor else if (fdecl->isSharedStaticCtorDeclaration()) { if (mustDefineSymbol(fdecl)) { @@ -525,7 +526,7 @@ void DtoDeclareFunction(FuncDeclaration* fdecl) gIR->sharedDtors.push_back(fdecl); } } - +#endif // we never reference parameters of function prototypes std::string str; if (!declareOnly)