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:
Marcelo Matus 2006-02-18 08:17:23 +00:00
commit b9c30d7738
4 changed files with 31 additions and 11 deletions

View file

@ -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
%}

View file

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