FreeTDS API
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
win32
tds_sysdep_public.h
1
/* FreeTDS - Library of routines accessing Sybase and Microsoft databases
2
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 Brian Bruns
3
*
4
* This library is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU Library General Public
6
* License as published by the Free Software Foundation; either
7
* version 2 of the License, or (at your option) any later version.
8
*
9
* This library is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* Library General Public License for more details.
13
*
14
* You should have received a copy of the GNU Library General Public
15
* License along with this library; if not, write to the
16
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
* Boston, MA 02111-1307, USA.
18
*/
19
20
#ifndef _tds_sysdep_public_h_
21
#define _tds_sysdep_public_h_
22
23
static
char
rcsid_tds_sysdep_public_h[] =
"$Id: tds_sysdep_public.h,v 1.5.6.1 2008/01/23 08:50:17 freddy77 Exp $"
;
24
static
void
*no_unused_tds_sysdep_public_h_warn[] = { rcsid_tds_sysdep_public_h, no_unused_tds_sysdep_public_h_warn };
25
26
#ifdef __cplusplus
27
extern
"C"
28
{
29
#endif
30
31
#include <windows.h>
32
#define tds_sysdep_int16_type short
/* 16-bit int */
33
#define tds_sysdep_int32_type int
/* 32-bit int */
34
#define tds_sysdep_int64_type __int64
/* 64-bit int */
35
#define tds_sysdep_real32_type float
/* 32-bit real */
36
#define tds_sysdep_real64_type double
/* 64-bit real */
37
#if !defined(WIN64) && !defined(_WIN64)
38
#define tds_sysdep_intptr_type int
/* 32-bit int */
39
#else
40
#define tds_sysdep_intptr_type __int64
/* 64-bit int */
41
#endif
42
typedef
SOCKET TDS_SYS_SOCKET;
43
#ifndef TDS_IS_SOCKET_INVALID
44
#define TDS_IS_SOCKET_INVALID(s) ((s) == INVALID_SOCKET)
45
#endif
46
47
#if !defined(MSDBLIB) && !defined(SYBDBLIB)
48
#define SYBDBLIB 1
49
#endif
50
#if defined(MSDBLIB) && defined(SYBDBLIB)
51
#error MSDBLIB and SYBDBLIB cannot both be defined
52
#endif
53
54
#ifdef __cplusplus
55
}
56
#endif
57
58
#endif
/* _tds_sysdep_public_h_ */
Generated by
1.8.5