summaryrefslogtreecommitdiff
path: root/src/port/stdint.h
blob: ec4f0ce202d74d8128d60b145cacdc9eafc86c77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef __STDINT_H
#define __STDINT_H

#include "port/sys.h"

/* for uintptr_t and snprintf placeholder PRIdPTR (FIXME:
 * needs a lot of improvement!) 
 */
#if defined SUNOS

#if OS_MAJOR_VERSION == 5

#if OS_MINOR_VERSION == 8
#include <sys/int_types.h>
/* FIXME: this may depend on 32/64-bit version of Solaris 8! */
#define PRIdPTR "d"
typedef unsigned long long uint64_t;
#else
#include <inttypes.h>
#include <stdint.h>
#endif /* OS_MINOR_VERSION == 8 */
#else
#include <inttypes.h>
#include <stdint.h>
#endif /* OS_MAJOR_VERSION == 5 */
#else
#include <inttypes.h>
#include <stdint.h>
#endif /* defined SUNOS */

#endif /* ifndef __STDINT_H */