Prevent redefinition warnings when compiling with SWIG<module> defined

Signed-off-by: Petre Eftime <petre.p.eftime@intel.com>
This commit is contained in:
Petre Eftime 2015-12-22 14:33:21 +02:00
commit 0a07cd4c30
20 changed files with 23 additions and 47 deletions

View file

@ -1097,8 +1097,7 @@ public:
Swig_banner(f_begin);
Printf(f_runtime, "\n");
Printf(f_runtime, "#define SWIGRUBY\n");
Printf(f_runtime, "\n\n#ifndef SWIGRUBY\n#define SWIGRUBY\n#endif\n\n");
if (directorsEnabled()) {
Printf(f_runtime, "#define SWIG_DIRECTORS\n");