fix minor problem when defining __cplusplus as 1, empty definition is ok.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6292 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
415420c4c4
commit
0ca860773f
1 changed files with 2 additions and 2 deletions
|
|
@ -367,7 +367,7 @@ int SWIG_main(int argc, char *argv[], Language *l) {
|
|||
Swig_mark_arg(i);
|
||||
} else if (strcmp(argv[i],"-c++") == 0) {
|
||||
CPlusPlus=1;
|
||||
Preprocessor_define((DOH *) "__cplusplus 1", 0);
|
||||
Preprocessor_define((DOH *) "__cplusplus", 0);
|
||||
Swig_cparse_cplusplus(1);
|
||||
Swig_mark_arg(i);
|
||||
} else if (strcmp(argv[i],"-fcompact") == 0) {
|
||||
|
|
@ -546,7 +546,7 @@ int SWIG_main(int argc, char *argv[], Language *l) {
|
|||
|
||||
// Define the __cplusplus symbol
|
||||
if (CPlusPlus)
|
||||
Preprocessor_define((DOH *) "__cplusplus 1", 0);
|
||||
Preprocessor_define((DOH *) "__cplusplus", 0);
|
||||
|
||||
// Parse language dependent options
|
||||
lang->main(argc,argv);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue