From 17d63d67f7156bae868e0239c3a588d07bc87534 Mon Sep 17 00:00:00 2001 From: Hugo Lima Date: Mon, 25 Jan 2010 17:48:45 -0200 Subject: Add protected hack to global header. --- headergenerator.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'headergenerator.cpp') diff --git a/headergenerator.cpp b/headergenerator.cpp index afd3e44dc..322fb5c81 100644 --- a/headergenerator.cpp +++ b/headergenerator.cpp @@ -271,6 +271,10 @@ void HeaderGenerator::finishGeneration() s << "#ifndef " << includeShield << endl; s << "#define " << includeShield << endl<< endl; + #ifndef AVOID_PROTECTED_HACK + s << "//workaround to access protected functions" << endl; + s << "#define protected public" << endl << endl; + #endif s << "#include " << endl; s << "#include " << endl; -- cgit v1.2.3