more fixes for old Solaris compiler
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8839 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c222ef7cee
commit
b9c30d7738
4 changed files with 31 additions and 11 deletions
|
|
@ -340,12 +340,10 @@
|
|||
#include <wchar.h>
|
||||
#include <limits.h>
|
||||
#ifndef WCHAR_MIN
|
||||
#warning "WCHAR_MIN not found, using value 0"
|
||||
#define WCHAR_MIN 0
|
||||
# define WCHAR_MIN 0
|
||||
#endif
|
||||
#ifndef WCHAR_MAX
|
||||
#warning "WCHAR_MAX not found, using value 65535"
|
||||
#define WCHAR_MAX 65535
|
||||
# define WCHAR_MAX 65535
|
||||
#endif
|
||||
%}
|
||||
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@
|
|||
Type _v;
|
||||
int res = swig::asval<Type >(obj, &_v);
|
||||
if (SWIG_IsOK(res)) {
|
||||
if (val) *val = %new_copy(_v, value_type);
|
||||
if (val) *val = new value_type(static_cast<const Type& >(_v));
|
||||
return SWIG_AddNewMask(res);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue