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:
William S Fulton 2005-05-09 19:37:41 +00:00
commit 88853360b7
2 changed files with 3 additions and 0 deletions

View file

@ -35,6 +35,7 @@ struct StructWithEnums {
}
};
extern "C"
enum {Hi, Hello } hi;
%}

View file

@ -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;