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

@ -329,8 +329,7 @@ public:
/* Standard stuff for the SWIG runtime section */
Swig_banner(f_begin);
Printf(f_runtime, "\n");
Printf(f_runtime, "#define SWIGLUA\n");
Printf(f_runtime, "\n\n#ifndef SWIGLUA\n#define SWIGLUA\n#endif\n\n");
emitLuaFlavor(f_runtime);