types.h revision 617e2443dfc17fe44fd44c0675d6aad2ffc9df42
/*******************************************************************************
* Copyright (C) 2004-2008 Intel Corp. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* - Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
*
* - Neither the name of Intel Corp. nor the names of its
* contributors may be used to endorse or promote products derived from this
* software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS''
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL Intel Corp. OR THE CONTRIBUTORS
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*******************************************************************************/
/**********************************************************************
* *
* Module Name: *
* types.h *
* *
* Abstract: *
* types for each OS are declared here. *
* *
**********************************************************************/
#ifndef _TYPES_H_
#define _TYPES_H_
typedef char CHAR;
#ifndef CONST
#define CONST const
#endif
typedef unsigned long DWORD;
typedef int BOOL;
typedef unsigned char BYTE;
typedef unsigned short WORD;
typedef float FLOAT;
typedef int *PINT;
typedef int *LPINT;
typedef long *LPLONG;
typedef void *LPVOID;
typedef int INT;
typedef unsigned int UINT;
typedef unsigned int *PUINT;
//
// UNICODE (Wide Character) types
//
typedef unsigned short WCHAR;
//
// ANSI (Multi-byte Character) types
//
//
//
#ifdef UNICODE
#ifndef _TCHAR_DEFINED
#define _TCHAR_DEFINED
#endif /* !_TCHAR_DEFINED */
#else /* UNICODE */
#ifndef _TCHAR_DEFINED
#define _TCHAR_DEFINED
#endif /* !_TCHAR_DEFINED */
#endif /* UNICODE */
#define EVENTLOG_ERROR_TYPE LOG_ERR
#define EVENTLOG_WARNING_TYPE LOG_WARNING
#define EVENTLOG_INFORMATION_TYPE LOG_INFO
#ifdef DEBUGLOG
#if defined(__sun)
#else // _LINUX
#endif // __sun
#else
#if defined(__sun)
#define PRINT(...)
#define ERROR(...)
#else // _LINUX
#endif // __sun
#endif //DEBUGLOG
#endif // __sun || _LINUX
#endif /* _TYPES_H_ */