Files
Sun1602/Server/ShopServer/Uitl/SQLAPI/db2_win32/sqlsystm.h
T
2022-10-26 12:25:11 +08:00

93 lines
2.8 KiB
C

/******************************************************************************
*
* Source File Name = SQLSYSTM.H
*
*
* (C) COPYRIGHT International Business Machines Corp. 1993
* All Rights Reserved
* Licensed Materials - Property of IBM
*
* US Government Users Restricted Rights - Use, duplication or
* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
*
* Function = Include File defining:
* Operating System Specific Information
*
* Operating System = NT 3.5
*
*****************************************************************************/
#ifndef SQL_H_SQLSYSTM
#define SQL_H_SQLSYSTM /* Permit duplicate Includes */
#ifndef DB2NT
#define DB2NT 1
#endif
#ifndef SQL_API_RC
#define SQL_API_RC int
#define SQL_STRUCTURE struct
#define SQL_POINTER
#define SQL_API_FN __stdcall
#define SQL_API_INTR __stdcall
#define PSQL_API_FN __stdcall *
#endif
/******************************************************************************
**
** The SQLOLDCHAR macro may be used to maintain compatibility between
** version 1 applications and version 2 header files. In version 1, many
** strings were declared as 'unsigned char'. In keeping with the spirit
** of ANSI C, all character data, structure members and function
** parameters with string semantics have been changed to 'char' in version 2.
** This change may produce type conflicts with some compilers. Adding
** -DSQLOLDCHAR to the compile command will cause the changed items to
** revert to their version 1 types. Note that this should be used for
** compatibility purposes only. New code should be written using plain
** 'char' where indicated in the documentation.
******************************************************************************/
#undef _SQLOLDCHAR
#ifdef SQLOLDCHAR
#define _SQLOLDCHAR unsigned char
#else
#define _SQLOLDCHAR char
#endif
/******************************************************************************
**
** Define fixed size integer types.
**
******************************************************************************/
typedef char sqlint8;
typedef unsigned char sqluint8;
typedef short sqlint16;
typedef unsigned short sqluint16;
typedef long sqlint32;
typedef unsigned long sqluint32;
#ifndef SQL_BIGINT_TYPE
#if defined(_MSC_VER) || defined(__BORLANDC__)
#define SQL_BIGINT_TYPE __int64
#define SQL_BIGINT_CONST_SUFFIX_L
#else
#define SQL_BIGINT_TYPE long long
#endif
#endif
#ifndef SQL_BIGUINT_TYPE
#if defined(_MSC_VER) || defined(__BORLANDC__)
#define SQL_BIGUINT_TYPE unsigned __int64
#else
#define SQL_BIGUINT_TYPE unsigned long long
#endif
#endif
typedef SQL_BIGINT_TYPE sqlint64;
typedef SQL_BIGUINT_TYPE sqluint64;
#endif /* SQL_H_SQLSYSTM */