home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
db2clisq.zip
/
sqlsystm.h
< prev
Wrap
C/C++ Source or Header
|
2002-08-04
|
3KB
|
81 lines
/******************************************************************************
* (C) COPYRIGHT International Business Machines Corp. 2000 - 2002
*
* 5724-D04
*
* All Rights Reserved
*
* US Government Users Restricted Rights - Use, duplication, or disclosure
* restricted by GSA ADP Schedule Contract with IBM Corp.
*
* Source File Name = SQLSYSTM.H
*
* Function = Include File defining:
* Operating System Specific Information
*
* Operating System = Common C Include File
*
*****************************************************************************/
#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
#define SQL_API_INTR
#define PSQL_API_FN
// #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 the 64 bit integer type.
**
******************************************************************************/
#ifndef SQL_BIGINT_TYPE
#ifdef _MSC_VER
#define SQL_BIGINT_TYPE __int64
#define SQL_BIGINT_CONST_SUFFIX_L
#else
#define SQL_BIGINT_TYPE long long
#endif
#endif
#ifndef SQL_NO_NATIVE_BIGINT_SUPPORT // A806TP
typedef SQL_BIGINT_TYPE sqlint64;
#endif
#endif /* SQL_H_SQLSYSTM */