Xbase64 Class Library 3.1.2
xbtypes.h
Go to the documentation of this file.
1/* xbtypes.h
2
3 Xbase64 project source code
4
5 Copyright (C) 1997,2003 Gary A Kunkel
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU Lesser General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
21
22 Contact:
23
24 Email:
25
26 xdb-devel@lists.sourceforge.net
27 xdb-users@lists.sourceforge.net
28
29
30 Regular Mail:
31
32 XBase Support
33 149C South Main St
34 Keller Texas, 76248
35 USA
36
37*/
38
39#ifndef __XB_XTYPES_H__
40#define __XB_XTYPES_H__
41
42#include <stdio.h>
43
48
50typedef unsigned long int xbULong;
51
53
55typedef unsigned short int xbUShort;
56
58
60typedef short int xbShort;
61typedef long xbLong;
62
63
65
67typedef float xbFloat;
68
69
71
73typedef double xbDouble;
74
76
78typedef short int xbBool;
79
81
83#ifdef XB_LOCKING_ON
84#ifdef __WIN32__
85#else
86#endif
87#endif // XB_LOCKING_ON
88
89// 64 bit file processing
90#if defined(HAVE_FSEEKO) && defined(HAVE_FTELLO) && defined(XB_LARGEFILE_SUPPORT)
91 #define _ftell ftello
92 #define _fseek fseeko
93 typedef off_t xbOffT;
94#else
95 #define _ftell ftell
96 #define _fseek fseek
97 typedef long xbOffT;
98#endif
99#endif // __XB_XTYPES_H__
long xbLong
Definition: xbtypes.h:61
short int xbBool
xbBool type
Definition: xbtypes.h:78
short int xbShort
xbShort type
Definition: xbtypes.h:60
unsigned short int xbUShort
xbUShort type
Definition: xbtypes.h:55
double xbDouble
xbDouble type
Definition: xbtypes.h:73
unsigned long int xbULong
xbULong type
Definition: xbtypes.h:50
long xbOffT
Definition: xbtypes.h:97
float xbFloat
xbFloat type
Definition: xbtypes.h:67