Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
7a2da179
Commit
7a2da179
authored
Apr 10, 2001
by
Francois Gouget
Committed by
Alexandre Julliard
Apr 10, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent multiple definitions caused by MSVCRT headers.
parent
b9ca58fc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
68 deletions
+14
-68
tchar.h
include/tchar.h
+0
-62
windef.h
include/windef.h
+10
-6
winnt.h
include/winnt.h
+4
-0
No files found.
include/tchar.h
View file @
7a2da179
...
...
@@ -7,68 +7,6 @@
extern
"C"
{
#endif
/* FIXME: this should be in direct.h but since it's a standard C library include (on some systems)... */
#define _chdir chdir
#define _rmdir rmdir
/* FIXME: this should be in io.h but I believe it's a standard include on some systems... */
/* would need unistd.h */
#define _access access
/* would need sys/stat.h */
#define _chmod chmod
/* would need fcntl.h */
#define _creat creat
#define _open open
/* FIXME: we need _S_IWRITE, _O_CREAT ... */
/* FIXME: _fsopen is not implemented */
#define sopen _sopen
/* FIXME: _sopen is not implemented */
/* FIXME: this should be in stdio.h but since it's a standard C library include... */
#define fgetchar getchar
#define fputchar putchar
#define _popen popen
#define _tempnam tempnam
#define _vsnprintf vsnprintf
/* FIXME: this should be in stdlib.h but since it's a standard C library include... */
/* FIXME: itoa and ltoa are missing */
/* FIXME: _makepath is not implemented */
/* FIXME: _searchenv is not implemented */
/* FIXME: _splitpath is not implemented */
/* FIXME: this should be in string.h but since it's a standard C library include... */
#define _stricmp strcasecmp
#define _strcmpi strcasecmp
#define strcmpi strcasecmp
#define _strnicmp strncasecmp
#define strnicmp strncasecmp
#define _strdup strdup
/* FIXME: stricoll is not implemented but strcasecmp is probably close enough in most cases */
#define _stricoll strcasecmp
#define stricoll _stricoll
#define strlwr _strlwr
#define strnset _strnset
/* FIXME: _strnset is not implemented */
#define strrev CRTDLL__strrev
char
*
CRTDLL__strrev
(
char
*
string
);
#define strset _strset
/* FIXME: _strset is not implemented */
#define strupr _strupr
#define ultoa _ultoa
/* FIXME: _ultoa is not implemented */
/* FIXME: this should be in sys/stat.h but since it's a standard C library include... */
#define _stat stat
/* FIXME: this should be in time.h but since it's a standard C library include... */
/* FIXME: _strdate is not implemented */
/* FIXME: _strtime is not implemented */
/* FIXME: this should be in utime.h but since it's a standard C library include... */
#define _utime utime
/*****************************************************************************
* tchar routines
*/
...
...
include/windef.h
View file @
7a2da179
...
...
@@ -151,12 +151,16 @@ typedef INT CALLBACK (*PROC)();
#define min(a,b) (((a) < (b)) ? (a) : (b))
#endif
#define _MAX_PATH 260
#define MAX_PATH 260
#define _MAX_DRIVE 3
#define _MAX_DIR 256
#define _MAX_FNAME 255
#define _MAX_EXT 256
#ifndef _MAX_PATH
/* FIXME: These are supposed to be in stdlib.h only */
#define _MAX_DRIVE 3
#define _MAX_FNAME 256
#define _MAX_DIR _MAX_FNAME
#define _MAX_EXT _MAX_FNAME
#define _MAX_PATH 260
#endif
#define MAX_PATH _MAX_PATH
#define HFILE_ERROR ((HFILE)-1)
...
...
include/winnt.h
View file @
7a2da179
...
...
@@ -12,6 +12,7 @@
#ifndef RC_INVOKED
#include <ctype.h>
#include <stddef.h>
#include <string.h>
#endif
...
...
@@ -250,11 +251,14 @@ typedef short SHORT, *PSHORT;
typedef
long
LONG
,
*
PLONG
,
*
LPLONG
;
/* Some systems might have wchar_t, but we really need 16 bit characters */
#ifndef WINE_WCHAR_DEFINED
#ifdef WINE_UNICODE_NATIVE
typedef
wchar_t
WCHAR
,
*
PWCHAR
;
#else
typedef
unsigned
short
WCHAR
,
*
PWCHAR
;
#endif
#define WINE_WCHAR_DEFINED
#endif
/* 'Extended/Wide' numerical types */
#ifndef _ULONGLONG_
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment