home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / db2clisq.zip / sqlsystm.h < prev   
C/C++ Source or Header  |  2002-08-04  |  3KB  |  81 lines

  1. /******************************************************************************
  2.  * (C) COPYRIGHT International Business Machines Corp. 2000 - 2002
  3.  *
  4.  * 5724-D04
  5.  *
  6.  * All Rights Reserved
  7.  *
  8.  * US Government Users Restricted Rights - Use, duplication, or disclosure
  9.  * restricted by GSA ADP Schedule Contract with IBM Corp.
  10.  *
  11.  * Source File Name = SQLSYSTM.H
  12.  *
  13.  * Function = Include File defining:
  14.  *              Operating System Specific Information
  15.  *
  16.  * Operating System = Common C Include File
  17.  *
  18.  *****************************************************************************/
  19.  
  20. #ifndef  SQL_H_SQLSYSTM
  21.    #define SQL_H_SQLSYSTM          /* Permit duplicate Includes */
  22.  
  23.  
  24. #ifndef DB2NT
  25.   //#define DB2NT     1
  26. #endif
  27.  
  28.  
  29. #ifndef SQL_API_RC
  30.  #define SQL_API_RC      int
  31.  #define SQL_STRUCTURE   struct
  32.  #define SQL_POINTER
  33. #define SQL_API_FN
  34. #define SQL_API_INTR
  35. #define PSQL_API_FN
  36.  // #define SQL_API_FN      __stdcall
  37.  // #define SQL_API_INTR    __stdcall
  38.  // #define PSQL_API_FN     __stdcall *
  39. #endif
  40.  
  41. /******************************************************************************
  42. **
  43. ** The SQLOLDCHAR macro may be used to maintain compatibility between
  44. ** version 1 applications and version 2 header files.  In version 1, many
  45. ** strings were declared as 'unsigned char'.  In keeping with the spirit
  46. ** of ANSI C, all character data, structure members and function
  47. ** parameters with string semantics have been changed to 'char' in version 2.
  48. ** This change may produce type conflicts with some compilers.  Adding
  49. ** -DSQLOLDCHAR to the compile command will cause the changed items to
  50. ** revert to their version 1 types.  Note that this should be used for
  51. ** compatibility purposes only.  New code should be written using plain
  52. ** 'char' where indicated in the documentation.
  53. ******************************************************************************/
  54.  
  55. #undef _SQLOLDCHAR
  56. #ifdef SQLOLDCHAR
  57.  #define _SQLOLDCHAR     unsigned char
  58. #else
  59.  #define _SQLOLDCHAR     char
  60. #endif
  61.  
  62. /******************************************************************************
  63. **
  64. ** Define the 64 bit integer type.
  65. **
  66. ******************************************************************************/
  67.  
  68. #ifndef SQL_BIGINT_TYPE
  69.    #ifdef _MSC_VER
  70.       #define SQL_BIGINT_TYPE __int64
  71.       #define SQL_BIGINT_CONST_SUFFIX_L
  72.    #else
  73.       #define SQL_BIGINT_TYPE long long
  74.    #endif
  75. #endif
  76. #ifndef SQL_NO_NATIVE_BIGINT_SUPPORT        // A806TP
  77. typedef SQL_BIGINT_TYPE sqlint64;
  78. #endif
  79.  
  80. #endif /* SQL_H_SQLSYSTM */
  81.