Sophie

Sophie

distrib > Mageia > 1 > i586 > media > core-release > by-pkgid > f0bc842dcf666302badcfd2545f3387c > files > 114

libfreetds0-doc-0.82-12.mga1.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>FreeTDS API: /usr/local/users/home/jklowden/projects/releases/freetds/0.82/win32/tds_sysdep_public.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.1 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
<div class="nav">
<a class="el" href="dir_000014.html">win32</a></div>
<h1>tds_sysdep_public.h</h1><div class="fragment"><pre class="fragment">00001 <span class="comment">/* FreeTDS - Library of routines accessing Sybase and Microsoft databases</span>
00002 <span class="comment"> * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004  Brian Bruns</span>
00003 <span class="comment"> *</span>
00004 <span class="comment"> * This library is free software; you can redistribute it and/or</span>
00005 <span class="comment"> * modify it under the terms of the GNU Library General Public</span>
00006 <span class="comment"> * License as published by the Free Software Foundation; either</span>
00007 <span class="comment"> * version 2 of the License, or (at your option) any later version.</span>
00008 <span class="comment"> *</span>
00009 <span class="comment"> * This library is distributed in the hope that it will be useful,</span>
00010 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
00011 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
00012 <span class="comment"> * Library General Public License for more details.</span>
00013 <span class="comment"> *</span>
00014 <span class="comment"> * You should have received a copy of the GNU Library General Public</span>
00015 <span class="comment"> * License along with this library; if not, write to the</span>
00016 <span class="comment"> * Free Software Foundation, Inc., 59 Temple Place - Suite 330,</span>
00017 <span class="comment"> * Boston, MA 02111-1307, USA.</span>
00018 <span class="comment"> */</span>
00019 
00020 <span class="preprocessor">#ifndef _tds_sysdep_public_h_</span>
00021 <span class="preprocessor"></span><span class="preprocessor">#define _tds_sysdep_public_h_</span>
00022 <span class="preprocessor"></span>
00023 <span class="keyword">static</span> <span class="keywordtype">char</span> rcsid_tds_sysdep_public_h[] = <span class="stringliteral">"$Id: tds_sysdep_public.h,v 1.5.6.1 2008/01/23 08:50:17 freddy77 Exp $"</span>;
00024 <span class="keyword">static</span> <span class="keywordtype">void</span> *no_unused_tds_sysdep_public_h_warn[] = { rcsid_tds_sysdep_public_h, no_unused_tds_sysdep_public_h_warn };
00025 
00026 <span class="preprocessor">#ifdef __cplusplus</span>
00027 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span>
00028 {
00029 <span class="preprocessor">#endif</span>
00030 <span class="preprocessor"></span>
00031 <span class="preprocessor">#include &lt;windows.h&gt;</span>
00032 <span class="preprocessor">#define tds_sysdep_int16_type short     </span><span class="comment">/* 16-bit int */</span>
00033 <span class="preprocessor">#define tds_sysdep_int32_type int       </span><span class="comment">/* 32-bit int */</span>
00034 <span class="preprocessor">#define tds_sysdep_int64_type __int64   </span><span class="comment">/* 64-bit int */</span>
00035 <span class="preprocessor">#define tds_sysdep_real32_type float    </span><span class="comment">/* 32-bit real */</span>
00036 <span class="preprocessor">#define tds_sysdep_real64_type double   </span><span class="comment">/* 64-bit real */</span>
00037 <span class="preprocessor">#if !defined(WIN64) &amp;&amp; !defined(_WIN64)</span>
00038 <span class="preprocessor"></span><span class="preprocessor">#define tds_sysdep_intptr_type int      </span><span class="comment">/* 32-bit int */</span>
00039 <span class="preprocessor">#else</span>
00040 <span class="preprocessor"></span><span class="preprocessor">#define tds_sysdep_intptr_type __int64  </span><span class="comment">/* 64-bit int */</span>
00041 <span class="preprocessor">#endif</span>
00042 <span class="preprocessor"></span><span class="keyword">typedef</span> SOCKET TDS_SYS_SOCKET;
00043 <span class="preprocessor">#ifndef TDS_IS_SOCKET_INVALID</span>
00044 <span class="preprocessor"></span><span class="preprocessor">#define TDS_IS_SOCKET_INVALID(s) ((s) == INVALID_SOCKET)</span>
00045 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00046 <span class="preprocessor"></span>
00047 <span class="preprocessor">#if !defined(MSDBLIB) &amp;&amp; !defined(SYBDBLIB)</span>
00048 <span class="preprocessor"></span><span class="preprocessor">#define SYBDBLIB 1</span>
00049 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00050 <span class="preprocessor"></span><span class="preprocessor">#if defined(MSDBLIB) &amp;&amp; defined(SYBDBLIB)</span>
00051 <span class="preprocessor"></span><span class="preprocessor">#error MSDBLIB and SYBDBLIB cannot both be defined</span>
00052 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00053 <span class="preprocessor"></span>
00054 <span class="preprocessor">#ifdef __cplusplus</span>
00055 <span class="preprocessor"></span>}
00056 <span class="preprocessor">#endif</span>
00057 <span class="preprocessor"></span>
00058 <span class="preprocessor">#endif                          </span><span class="comment">/* _tds_sysdep_public_h_ */</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed May 7 19:22:09 2008 for FreeTDS API by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.1 </small></address>
</body>
</html>