ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/tewi/VC6Compat/stdint.h
Revision: 1.6
Committed: Sun Nov 3 13:49:38 2024 UTC (11 days, 18 hours ago) by nishi
Content type: text/x-c
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +3 -1 lines
Log Message:
fixing for solaris

File Contents

# User Rev Content
1 nishi 1.6 /* $Id: stdint.h 405 2024-11-03 13:49:26Z nishi $ */
2 nishi 1.1
3     #ifndef __STDINT_H__
4     #define __STDINT_H__
5    
6 nishi 1.2 #ifdef __bsdi__
7 nishi 1.4 #include <machine/types.h>
8 nishi 1.2 typedef u_int8_t uint8_t;
9 nishi 1.3 typedef u_int16_t uint16_t;
10 nishi 1.2 typedef u_int32_t uint32_t;
11     typedef u_int64_t uint64_t;
12 nishi 1.5
13     #define INT32_MAX 0x7fffffff
14 nishi 1.6 #elif defined(__sun__)
15     #include <sys/int_types.h>
16 nishi 1.2 #else
17 nishi 1.1 typedef unsigned char uint8_t;
18     typedef unsigned short uint16_t;
19     typedef unsigned int uint32_t;
20     typedef char int8_t;
21     typedef short int16_t;
22     typedef int int32_t;
23    
24     #define INT32_MAX 0x7fffffff
25 nishi 1.2 #endif
26 nishi 1.1
27     #endif