win32 compatibility

git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@887 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
vlm 2005-05-27 20:56:08 +00:00
parent 5a0e88981b
commit 0b56940efc
1 changed files with 12 additions and 0 deletions

View File

@ -25,6 +25,18 @@
#define vsnprintf _vsnprintf
#define alloca(size) _alloca(size)
#ifdef _MSC_VER /* MSVS.Net */
#define ssize_t SSIZE_T
typedef char int8_t;
typedef short int16_t;
typedef int int32_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif /* _MSC_VER */
#else /* !WIN32 */
#include <inttypes.h> /* C99 specifies this file */