Fix test - SWIG was incorrectly getting #defines to the windows integer types, which was not intended in original test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9222 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
1d24d79e1d
commit
86ac4ea794
1 changed files with 4 additions and 2 deletions
|
|
@ -2,17 +2,19 @@
|
|||
|
||||
%include "windows.i"
|
||||
|
||||
%inline %{
|
||||
%{
|
||||
#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
|
||||
#include <windows.h>
|
||||
#else
|
||||
// Use equivalent typs for non-windows systems
|
||||
// Use equivalent types for non-windows systems
|
||||
#define __int8 char
|
||||
#define __int16 short
|
||||
#define __int32 int
|
||||
#define __int64 long long
|
||||
#endif
|
||||
%}
|
||||
|
||||
%inline %{
|
||||
// Non ISO integral types
|
||||
__int8 int8_val ( __int8 i) { return i; }
|
||||
__int16 int16_val( __int16 i) { return i; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue