| 1 |
/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\ |
| 2 |
|
| 3 |
File: octtypewin.h |
| 4 |
|
| 5 |
Copyright (c) 2001-2007 Octasic Inc. |
| 6 |
|
| 7 |
Description: |
| 8 |
|
| 9 |
This file defines the base storage types for the Windows environment. |
| 10 |
Includes the Windows definition file and add the missing ones here. |
| 11 |
|
| 12 |
This file is part of the Octasic OCT6100 GPL API . The OCT6100 GPL API is |
| 13 |
free software; you can redistribute it and/or modify it under the terms of |
| 14 |
the GNU General Public License as published by the Free Software Foundation; |
| 15 |
either version 2 of the License, or (at your option) any later version. |
| 16 |
|
| 17 |
The OCT6100 GPL API is distributed in the hope that it will be useful, but |
| 18 |
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
| 19 |
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 20 |
for more details. |
| 21 |
|
| 22 |
You should have received a copy of the GNU General Public License |
| 23 |
along with the OCT6100 GPL API; if not, write to the Free Software |
| 24 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
| 25 |
|
| 26 |
$Octasic_Release: OCT612xAPI-01.00-PR49 $ |
| 27 |
|
| 28 |
$Octasic_Revision: 16 $ |
| 29 |
|
| 30 |
\*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/ |
| 31 |
|
| 32 |
#ifndef __OCTTYPEWIN_H__ |
| 33 |
#define __OCTTYPEWIN_H__ |
| 34 |
|
| 35 |
/*-------------------------------------------------------------------------- |
| 36 |
C language |
| 37 |
----------------------------------------------------------------------------*/ |
| 38 |
#define WIN32_LEAN_AND_MEAN /* just get the base type definition from Windows */ |
| 39 |
#include <windows.h> |
| 40 |
|
| 41 |
/* Disable argument not used warning */ |
| 42 |
#pragma warning( disable : 4100 ) |
| 43 |
/* Disable Level 4 warning: nonstandard extension used : translation unit is empty */ |
| 44 |
#pragma warning( disable : 4206 ) |
| 45 |
|
| 46 |
#ifdef __cplusplus |
| 47 |
extern "C" { |
| 48 |
#endif |
| 49 |
|
| 50 |
/* 16-bit integer */ |
| 51 |
typedef unsigned short UINT16; |
| 52 |
typedef signed short INT16; |
| 53 |
typedef unsigned short *PUINT16; |
| 54 |
typedef signed short *PINT16; |
| 55 |
|
| 56 |
/* 8-bit integer */ |
| 57 |
typedef unsigned char UINT8; |
| 58 |
typedef signed char INT8; |
| 59 |
typedef signed char OCT_INT8; |
| 60 |
typedef unsigned char *PUINT8; |
| 61 |
typedef signed char *PINT8; |
| 62 |
|
| 63 |
typedef double DOUBLE; |
| 64 |
|
| 65 |
|
| 66 |
/* 32 bit integer */ |
| 67 |
#if ( defined( _MSC_VER ) && _MSC_VER == 1100 ) |
| 68 |
/* MFC5 compiler does not define UINT32 */ |
| 69 |
typedef unsigned int UINT32; |
| 70 |
typedef signed int INT32; |
| 71 |
typedef INT32 * PINT32; |
| 72 |
typedef UINT32 * PUINT32; |
| 73 |
#endif /* _MSC_VER */ |
| 74 |
|
| 75 |
/* LONG LONG */ |
| 76 |
#define LLONG signed __int64 |
| 77 |
#define PLLONG signed __int64 * |
| 78 |
#define ULLONG unsigned __int64 |
| 79 |
#define PULLONG unsigned __int64 * |
| 80 |
|
| 81 |
/* Double integers */ |
| 82 |
typedef double DOUBLE; |
| 83 |
typedef double * PDOUBLE; |
| 84 |
typedef float FLOAT; |
| 85 |
typedef float * PFLOAT; |
| 86 |
|
| 87 |
#ifndef OPT |
| 88 |
#define OPT /* OPT param */ |
| 89 |
#endif |
| 90 |
|
| 91 |
typedef PSZ * PPSZ; |
| 92 |
|
| 93 |
/*-------------------------------------------------------------------------- |
| 94 |
C language |
| 95 |
----------------------------------------------------------------------------*/ |
| 96 |
#ifdef __cplusplus |
| 97 |
} |
| 98 |
#endif |
| 99 |
|
| 100 |
#endif /* __OCTTYPEWIN_H__ */ |