FreeTDS API: win32/tds_sysdep_public.h Source File

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List
- File Members

# win32/tds_sysdep_public.h

    00001 /* FreeTDS - Library of routines accessing Sybase and Microsoft databases
    00002  * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004  Brian Bruns
    00003  *
    00004  * This library is free software; you can redistribute it and/or
    00005  * modify it under the terms of the GNU Library General Public
    00006  * License as published by the Free Software Foundation; either
    00007  * version 2 of the License, or (at your option) any later version.
    00008  *
    00009  * This library is distributed in the hope that it will be useful,
    00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00012  * Library General Public License for more details.
    00013  *
    00014  * You should have received a copy of the GNU Library General Public
    00015  * License along with this library; if not, write to the
    00016  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    00017  * Boston, MA 02111-1307, USA.
    00018  */
    00019
    00020 #ifndef _tds_sysdep_public_h_
    00021 #define _tds_sysdep_public_h_
    00022
    00023 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 $";
    00024 static void *no_unused_tds_sysdep_public_h_warn[] = { rcsid_tds_sysdep_public_h, no_unused_tds_sysdep_public_h_warn };
    00025
    00026 #ifdef __cplusplus
    00027 extern "C"
    00028 {
    00029 #endif
    00030
    00031 #include <windows.h>
    00032 #define tds_sysdep_int16_type short     /* 16-bit int */
    00033 #define tds_sysdep_int32_type int       /* 32-bit int */
    00034 #define tds_sysdep_int64_type __int64   /* 64-bit int */
    00035 #define tds_sysdep_real32_type float    /* 32-bit real */
    00036 #define tds_sysdep_real64_type double   /* 64-bit real */
    00037 #if !defined(WIN64) && !defined(_WIN64)
    00038 #define tds_sysdep_intptr_type int      /* 32-bit int */
    00039 #else
    00040 #define tds_sysdep_intptr_type __int64  /* 64-bit int */
    00041 #endif
    00042 typedef SOCKET TDS_SYS_SOCKET;
    00043 #ifndef TDS_IS_SOCKET_INVALID
    00044 #define TDS_IS_SOCKET_INVALID(s) ((s) == INVALID_SOCKET)
    00045 #endif
    00046
    00047 #if !defined(MSDBLIB) && !defined(SYBDBLIB)
    00048 #define SYBDBLIB 1
    00049 #endif
    00050 #if defined(MSDBLIB) && defined(SYBDBLIB)
    00051 #error MSDBLIB and SYBDBLIB cannot both be defined
    00052 #endif
    00053
    00054 #ifdef __cplusplus
    00055 }
    00056 #endif
    00057
    00058 #endif                          /* _tds_sysdep_public_h_ */

All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines