/usr/include/tds_sysdep_public.h is in freetds-dev 0.91-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | /* FreeTDS - Library of routines accessing Sybase and Microsoft databases
* Copyright (C) 1998-1999 Brian Bruns
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef _tds_sysdep_public_h_
#define _tds_sysdep_public_h_
/* $Id: tds_sysdep_public.h.in,v 1.14 2010/09/01 08:39:38 freddy77 Exp $ */
#ifdef __cplusplus
extern "C"
{
#endif
/*
** This is where platform-specific changes need to be made.
*/
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__)
#include <winsock2.h>
#include <windows.h>
#define tds_sysdep_int16_type short /* 16-bit int */
#define tds_sysdep_int32_type int /* 32-bit int */
#define tds_sysdep_int64_type __int64 /* 64-bit int */
#define tds_sysdep_real32_type float /* 32-bit real */
#define tds_sysdep_real64_type double /* 64-bit real */
#if !defined(WIN64) && !defined(_WIN64)
#define tds_sysdep_intptr_type int /* 32-bit int */
#else
#define tds_sysdep_intptr_type __int64 /* 64-bit int */
#endif
#endif /* defined(WIN32) || defined(_WIN32) || defined(__WIN32__) */
#ifndef tds_sysdep_int16_type
#define tds_sysdep_int16_type short /* 16-bit int */
#endif /* !tds_sysdep_int16_type */
#ifndef tds_sysdep_int32_type
#define tds_sysdep_int32_type int /* 32-bit int */
#endif /* !tds_sysdep_int32_type */
#ifndef tds_sysdep_int64_type
#define tds_sysdep_int64_type long /* 64-bit int */
#endif /* !tds_sysdep_int64_type */
#ifndef tds_sysdep_real32_type
#define tds_sysdep_real32_type float /* 32-bit real */
#endif /* !tds_sysdep_real32_type */
#ifndef tds_sysdep_real64_type
#define tds_sysdep_real64_type double /* 64-bit real */
#endif /* !tds_sysdep_real64_type */
#ifndef tds_sysdep_intptr_type
#define tds_sysdep_intptr_type long
#endif /* !tds_sysdep_intptr_type */
#if !defined(MSDBLIB) && !defined(SYBDBLIB)
#define SYBDBLIB 1
#endif
#if defined(MSDBLIB) && defined(SYBDBLIB)
#error MSDBLIB and SYBDBLIB cannot both be defined
#endif
#ifdef __cplusplus
}
#endif
#endif /* _tds_sysdep_public_h_ */
|