From e08809c2484622d8c64cbe0354732a623eecf254 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Thu, 10 Nov 2005 21:24:07 +0000 Subject: [PATCH] New library file for types in Windows.h git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7841 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/windows.i | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Lib/windows.i diff --git a/Lib/windows.i b/Lib/windows.i new file mode 100644 index 000000000..43880dc8c --- /dev/null +++ b/Lib/windows.i @@ -0,0 +1,26 @@ + +// Support for non ISO (Windows) integral types +%apply unsigned char { unsigned __int8 }; +%apply const unsigned char& { const unsigned __int8& }; + +%apply signed char { __int8 }; +%apply const signed char& { const __int8& }; + +%apply unsigned short { unsigned __int16 }; +%apply const unsigned short& { const unsigned __int16& }; + +%apply short { __int16 }; +%apply const short& { const __int16& }; + +%apply unsigned int { unsigned __int32 }; +%apply const unsigned int& { const unsigned __int32& }; + +%apply int { __int32 }; +%apply const int& { const __int32& }; + +%apply unsigned long long { unsigned __int64 }; +%apply const unsigned long long& { const unsigned __int64& }; + +%apply long long { __int64 }; +%apply const long long& { const __int64& }; +