1/*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License").  You may not use this file except in compliance with the
9 * License.  Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
11 *
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
17 * License for the specific language governing rights and limitations
18 * under the License.
19 *
20 * @APPLE_LICENSE_HEADER_END@
21 */
22
23/*
24 * MUSCLE SmartCard Development ( http://www.linuxnet.com )
25 *
26 * Copyright (C) 1999
27 *  David Corcoran <corcoran@linuxnet.com>
28 *
29 * $Id: wintypes.h 123 2010-03-27 10:50:42Z ludovic.rousseau@gmail.com $
30 */
31
32/**
33 * @file
34 * @brief This keeps a list of Windows(R) types.
35 */
36
37#ifndef __wintypes_h__
38#define __wintypes_h__
39
40#ifdef __cplusplus
41extern "C"
42{
43#endif
44
45#if !defined(WIN32)
46
47#include <stdint.h>
48
49#ifndef BYTE
50	typedef uint8_t BYTE;
51#endif
52	typedef uint8_t UCHAR;
53	typedef uint8_t *PUCHAR;
54	typedef uint16_t USHORT;
55
56#ifndef __COREFOUNDATION_CFPLUGINCOM__
57	typedef uint32_t ULONG;
58	typedef void *LPVOID;
59	typedef int16_t BOOL;
60#endif
61
62	typedef uint32_t *PULONG;
63	typedef const void *LPCVOID;
64	typedef uint32_t DWORD;
65	typedef uint32_t *PDWORD;
66	typedef uint16_t WORD;
67	typedef int32_t LONG;
68	typedef int32_t RESPONSECODE;
69	typedef const char *LPCSTR;
70	typedef const BYTE *LPCBYTE;
71	typedef BYTE *LPBYTE;
72	typedef DWORD *LPDWORD;
73	typedef char *LPSTR;
74
75	/* these types are deprecated but still used by old drivers and applications
76	 * You should use LPSTR instead */
77	typedef char *LPTSTR ;
78	typedef const char *LPCTSTR ;
79	typedef char *LPCWSTR
80#ifdef __GNUC__
81		/* __attribute__ is a GCC only extension */
82		__attribute__ ((deprecated))
83#endif
84		;
85
86#else
87#include <windows.h>
88#endif
89
90#ifdef __cplusplus
91}
92#endif
93
94#endif
95