fixes for gcc-4.0 interpretation of the C++ standard - anonymous declarations cannot have external C++ linkage.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7181 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
940f8e3325
commit
88853360b7
2 changed files with 3 additions and 0 deletions
|
|
@ -35,6 +35,7 @@ struct StructWithEnums {
|
|||
}
|
||||
};
|
||||
|
||||
extern "C"
|
||||
enum {Hi, Hello } hi;
|
||||
|
||||
%}
|
||||
|
|
|
|||
|
|
@ -461,7 +461,9 @@ struct Obscure {
|
|||
};
|
||||
|
||||
// Unnamed enum instance
|
||||
extern "C" {
|
||||
enum { globalinstance1, globalinstance2, globalinstance3 = 30 } GlobalInstance;
|
||||
}
|
||||
|
||||
struct Instances {
|
||||
enum { memberinstance1, memberinstance2, memberinstance3 = 300 } MemberInstance;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue