1/*
2 * The contents of this file are subject to the Initial
3 * Developer's Public License Version 1.0 (the "License");
4 * you may not use this file except in compliance with the
5 * License. You may obtain a copy of the License at
6 * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl.
7 *
8 * Software distributed under the License is distributed AS IS,
9 * WITHOUT WARRANTY OF ANY KIND, either express or implied.
10 * See the License for the specific language governing rights
11 * and limitations under the License.
12 *
13 * The Original Code was created by Adriano dos Santos Fernandes
14 * for the Firebird Open Source RDBMS project, based on previous work done
15 * by Eugeney Putilin <evgeneyputilin at mail.ru>,
16 * Vlad Khorsun <hvlad at users.sourceforge.net> and
17 * Roman Rokytskyy <roman at rokytskyy.de>.
18 *
19 * Copyright (c) 2008 Adriano dos Santos Fernandes <adrianosf@uol.com.br>
20 * and all contributors signed below.
21 *
22 * All Rights Reserved.
23 * Contributor(s): ______________________________________.
24 * Eugeney Putilin <evgeneyputilin at mail.ru>
25 * Vlad Khorsun <hvlad at users.sourceforge.net>
26 * Roman Rokytskyy <roman at rokytskyy.de>
27 */
28
29#ifndef FIREBIRD_API_H
30#define FIREBIRD_API_H
31
32#define FB_NULL 0L
33
34
35namespace Firebird {
36
37
38typedef unsigned int uint;
39typedef short int16;
40typedef int int32;
41
42#if (defined(WIN32) || defined(_WIN32) || defined(__WIN32__)) && !defined(__GNUC__)
43typedef __int64 int64;
44#else
45typedef long long int int64;
46#endif
47
48typedef char Utf8; // Utf8* used as nul-terminated string
49
50// ISC compatible handle
51#if defined(_LP64) || defined(__LP64__) || defined(__arch64__) || defined(_WIN64)
52typedef unsigned int Handle;
53#else
54typedef void* Handle;
55#endif
56
57
58} // namespace Firebird
59
60
61#endif // FIREBIRD_API_H
62