fix VC7.1 compilation problem
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7017 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
006097c0a9
commit
7b6b8d042c
2 changed files with 10 additions and 6 deletions
|
|
@ -12,6 +12,10 @@
|
|||
return a;
|
||||
}
|
||||
|
||||
int foof(int a) {
|
||||
return 3*a;
|
||||
}
|
||||
|
||||
struct A
|
||||
{
|
||||
static int bar(int a) {
|
||||
|
|
@ -23,12 +27,9 @@
|
|||
return -a;
|
||||
}
|
||||
|
||||
friend int foof(int a)
|
||||
{
|
||||
return 3*a;
|
||||
}
|
||||
//friend int foof(int a);
|
||||
};
|
||||
|
||||
|
||||
|
||||
extern "C" int foobar(int a, int (*pf)(int a)) {
|
||||
return pf(a);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue