Commit f689f0b9 authored by Lev Walkin's avatar Lev Walkin
Browse files

vxworks patch; windows patch

parent 37ec0733
...@@ -21,9 +21,10 @@ ...@@ -21,9 +21,10 @@
#ifdef WIN32 #ifdef WIN32
#include <malloc.h>
#include <stdint.h>
#define snprintf _snprintf #define snprintf _snprintf
#define vsnprintf _vsnprintf #define vsnprintf _vsnprintf
#define alloca(size) _alloca(size)
#ifdef _MSC_VER /* MSVS.Net */ #ifdef _MSC_VER /* MSVS.Net */
#ifndef __cplusplus #ifndef __cplusplus
...@@ -47,6 +48,10 @@ typedef unsigned int uint32_t; ...@@ -47,6 +48,10 @@ typedef unsigned int uint32_t;
#else /* !WIN32 */ #else /* !WIN32 */
#if defined(__vxworks)
#include <types/vxTypes.h>
#else /* !defined(__vxworks) */
#include <inttypes.h> /* C99 specifies this file */ #include <inttypes.h> /* C99 specifies this file */
/* /*
* 1. Earlier FreeBSD version didn't have <stdint.h>, * 1. Earlier FreeBSD version didn't have <stdint.h>,
...@@ -69,6 +74,8 @@ typedef unsigned int uint32_t; ...@@ -69,6 +74,8 @@ typedef unsigned int uint32_t;
#endif /* defined(sun) */ #endif /* defined(sun) */
#endif #endif
#endif /* defined(__vxworks) */
#endif /* WIN32 */ #endif /* WIN32 */
#ifndef __GNUC__ #ifndef __GNUC__
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment