it’s ugly to write a ./stdint.h file if we can instead define the

types from sh.h; sync clog
This commit is contained in:
tg
2010-08-24 15:19:54 +00:00
parent 7fdc42cead
commit a0d43a99fd
3 changed files with 49 additions and 42 deletions

19
sh.h
View File

@@ -150,7 +150,7 @@
#endif
#ifdef EXTERN
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.404 2010/08/24 14:42:04 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.405 2010/08/24 15:19:54 tg Exp $");
#endif
#define MKSH_VERSION "R39 2010/08/24"
@@ -188,6 +188,23 @@ typedef int bool;
#define true 1
#endif
#if !HAVE_CAN_INTTYPES
#if !HAVE_CAN_UCBINTS
typedef signed int int32_t;
typedef unsigned int uint32_t;
#else
typedef u_int32_t uint32_t;
#endif
#endif
#if !HAVE_CAN_INT8TYPE
#if !HAVE_CAN_UCBINT8
typedef unsigned char uint8_t;
#else
typedef u_int8_t uint8_t;
#endif
#endif
/* extra macros */
#ifndef timerclear