OWLNext
7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
mingw32.h
Go to the documentation of this file.
1
//----------------------------------------------------------------------------
2
// ObjectWindows
3
// OWL NExt
4
//
5
// Created by Kenneth Haley ( khaley@bigfoot.com )
6
//
7
//----------------------------------------------------------------------------
8
9
#if !defined(OWL_PRIVATE_MINGW32_H)
10
#define OWL_PRIVATE_MINGW32_H
11
12
#ifndef _WIN32_IE
13
# define _WIN32_IE 0x0400
14
#endif
15
16
#ifdef _UNICODE
17
// define before GNU headers currently tchar.h not complete
18
//# ifndef _TCHAR_DEFINED
19
typedef
wchar_t
TCHAR
;
20
typedef
wchar_t
_TCHAR
;
21
typedef
wchar_t
_TSCHAR
;
22
typedef
wchar_t
_TUCHAR
;
23
typedef
wchar_t
_TXCHAR
;
24
typedef
wint_t
_TINT
;
25
# define _TCHAR_DEFINED
26
//# endif
27
28
# define __T(x) L ## x
29
//# define _T(x) __T(x)
30
31
# define AnsiToOem CharToOemW
32
# define OemToAnsi OemToCharW
33
# define AnsiToOemBuff CharToOemBuffW
34
# define OemToAnsiBuff OemToCharBuffW
35
# define AnsiUpper CharUpperW
36
# define AnsiUpperBuff CharUpperBuffW
37
# define AnsiLower CharLowerW
38
# define AnsiLowerBuff CharLowerBuffW
39
# define AnsiNext CharNextW
40
# define AnsiPrev CharPrevW
41
42
43
#error Various wide function not defined
44
45
46
#else
// _UNICODE
47
48
//# ifndef _TCHAR_DEFINED
49
typedef
char
TCHAR
;
50
typedef
char
_TCHAR
;
51
typedef
signed
char
_TSCHAR
;
52
typedef
unsigned
char
_TUCHAR
;
53
typedef
unsigned
char
_TXCHAR
;
54
typedef
unsigned
int
_TINT
;
55
# define _TCHAR_DEFINED
56
//# endif
57
58
# define __T(x) x
59
//# define _T(x) __T(x)
60
61
# define AnsiToOem CharToOemA
62
# define OemToAnsi OemToCharA
63
# define AnsiToOemBuff CharToOemBuffA
64
# define OemToAnsiBuff OemToCharBuffA
65
# define AnsiUpper CharUpperA
66
# define AnsiUpperBuff CharUpperBuffA
67
# define AnsiLower CharLowerA
68
# define AnsiLowerBuff CharLowerBuffA
69
# define AnsiNext CharNextA
70
# define AnsiPrev CharPrevA
71
#define _ltot _ltoa
72
#define _ttoi atoi
73
//#define _itot itoa // Y.B. gcc 2.5.2
74
#define _tfopen fopen
75
#define _ttol atol
76
#define _tfullpath _fullpath
77
#define _tWinMain WinMain
78
#define _tmain main
79
#endif
80
81
#endif
// OWL_PRIVATE_MINGW32_H
VarType
Definition
safearray.h:14
TCHAR
char TCHAR
Definition
mingw32.h:49
_TXCHAR
unsigned char _TXCHAR
Definition
mingw32.h:53
_TSCHAR
signed char _TSCHAR
Definition
mingw32.h:51
_TINT
unsigned int _TINT
Definition
mingw32.h:54
_TUCHAR
unsigned char _TUCHAR
Definition
mingw32.h:52
include
owl
private
mingw32.h
Generated by
1.10.0