Fix Python 3 division member operator when -builtin is not used.

This commit is contained in:
Emmanuel Julien 2016-02-22 16:30:24 +01:00
commit 8df7c5fb7e
2 changed files with 9 additions and 0 deletions

View file

@ -517,6 +517,7 @@ public:
fputs(usage3, stdout);
} else if (strcmp(argv[i], "-py3") == 0) {
py3 = 1;
Preprocessor_define("SWIGPYTHON_PY3", 0);
Swig_mark_arg(i);
} else if (strcmp(argv[i], "-builtin") == 0) {
builtin = 1;