diff options
-rw-r--r-- | headergenerator.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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 <Python.h>" << endl; s << "#include <conversions.h>" << endl; |