sqlitexx 0.0.1
stdint.h
Go to the documentation of this file.
1/*
2 * sqlite3xx - sqlite3 C++ layer, following the ideas of libpqxx
3 * Copyright (C) 2009 Andreas Baumann
4 *
5 * This copyrighted material is made available to anyone wishing to use,
6 * modify, copy, or redistribute it subject to the terms and conditions of
7 * the GNU Lesser General Public License, as published by the Free Software
8 * Foundation.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the GNU Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this distribution; if not, write to:
17 * Free Software Foundation, Inc.
18 * 51 Franklin Street, Fifth Floor
19 * Boston, MA 02110-1301 USA
20 *
21 */
22
23#ifndef __SQLITE3_PORT_STDINT_H
24#define __SQLITE3_PORT_STDINT_H
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30#include "sqlite3xx/port/sys.h"
31
32/* for uintptr_t and snprintf placeholder PRIdPTR (FIXME:
33 * needs a lot of improvement!)
34 */
35#if defined SUNOS
36
37#if OS_MAJOR_VERSION == 5
38
39#if OS_MINOR_VERSION == 8
40#include <sys/int_types.h>
41/* FIXME: this may depend on 32/64-bit version of Solaris 8! */
42#define PRIdPTR "d"
43typedef unsigned long long uint64_t;
44#else
45#include <inttypes.h>
46#include <stdint.h>
47#endif /* OS_MINOR_VERSION == 8 */
48#else
49#include <inttypes.h>
50#include <stdint.h>
51#endif /* OS_MAJOR_VERSION == 5 */
52#else
53
54#if !defined _WIN32
55#include <inttypes.h>
56#include <stdint.h>
57#else
58#include <windows.h>
59#define uintmax_t __int64
60#endif /* !defined _WIN32 */
61
62#endif /* defined SUNOS */
63
64#ifdef __cplusplus
65}
66#endif
67
68#endif /* ifndef __SQLITE3_PORT_STDINT_H */