add declaration for WCHAR_MIN and WCHAR_MAX if not founded

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8665 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-02-01 05:14:43 +00:00
commit 872422e8eb

View file

@ -338,6 +338,15 @@
%fragment("<wchar.h>","header") %{
#include <wchar.h>
#include <limits.h>
#ifndef WCHAR_MIN
#warning "WCHAR_MIN not found, using value 0"
#define WCHAR_MIN 0
#endif
#ifndef WCHAR_MAX
#warning "WCHAR_MAX not found, using value 65535"
#define WCHAR_MAX 65535
#endif
%}
%fragment("<float.h>","header") %{