aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2006-05-02 18:55:41 +0000
committerLev Walkin <vlm@lionet.info>2006-05-02 18:55:41 +0000
commitf689f0b90de4c33d2ea79ec34cc1723db1aabcbb (patch)
tree1c246e660c144f9b5f03d83caaee3dfba93cb085
parent37ec07331ac5de3eda67a1d0594a6628f09a7013 (diff)
vxworks patch; windows patch
-rw-r--r--skeletons/asn_system.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/skeletons/asn_system.h b/skeletons/asn_system.h
index 3dcce135..568213f5 100644
--- a/skeletons/asn_system.h
+++ b/skeletons/asn_system.h
@@ -21,9 +21,10 @@
#ifdef WIN32
+#include <malloc.h>
+#include <stdint.h>
#define snprintf _snprintf
#define vsnprintf _vsnprintf
-#define alloca(size) _alloca(size)
#ifdef _MSC_VER /* MSVS.Net */
#ifndef __cplusplus
@@ -47,6 +48,10 @@ typedef unsigned int uint32_t;
#else /* !WIN32 */
+#if defined(__vxworks)
+#include <types/vxTypes.h>
+#else /* !defined(__vxworks) */
+
#include <inttypes.h> /* C99 specifies this file */
/*
* 1. Earlier FreeBSD version didn't have <stdint.h>,
@@ -69,6 +74,8 @@ typedef unsigned int uint32_t;
#endif /* defined(sun) */
#endif
+#endif /* defined(__vxworks) */
+
#endif /* WIN32 */
#ifndef __GNUC__