Rev | Line | |
---|
[212] | 1 | /* $Id: stdint.h 405 2024-11-03 13:49:26Z nishi $ */
|
---|
| 2 |
|
---|
| 3 | #ifndef __STDINT_H__
|
---|
| 4 | #define __STDINT_H__
|
---|
| 5 |
|
---|
[375] | 6 | #ifdef __bsdi__
|
---|
[379] | 7 | #include <machine/types.h>
|
---|
[375] | 8 | typedef u_int8_t uint8_t;
|
---|
[378] | 9 | typedef u_int16_t uint16_t;
|
---|
[375] | 10 | typedef u_int32_t uint32_t;
|
---|
[376] | 11 | typedef u_int64_t uint64_t;
|
---|
[382] | 12 |
|
---|
| 13 | #define INT32_MAX 0x7fffffff
|
---|
[405] | 14 | #elif defined(__sun__)
|
---|
| 15 | #include <sys/int_types.h>
|
---|
[375] | 16 | #else
|
---|
[212] | 17 | typedef unsigned char uint8_t;
|
---|
| 18 | typedef unsigned short uint16_t;
|
---|
| 19 | typedef unsigned int uint32_t;
|
---|
[301] | 20 | typedef char int8_t;
|
---|
| 21 | typedef short int16_t;
|
---|
| 22 | typedef int int32_t;
|
---|
[212] | 23 |
|
---|
| 24 | #define INT32_MAX 0x7fffffff
|
---|
[375] | 25 | #endif
|
---|
[212] | 26 |
|
---|
| 27 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.