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:
parent
016c49bd21
commit
872422e8eb
1 changed files with 9 additions and 0 deletions
|
|
@ -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") %{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue