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
33fa6c2e
Commit
33fa6c2e
authored
Dec 11, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add the msvcrt/crtdefs.h header and include it where needed.
parent
7a6c6747
Hide whitespace changes
Inline
Side-by-side
Showing
34 changed files
with
192 additions
and
560 deletions
+192
-560
Makefile.in
include/Makefile.in
+1
-0
conio.h
include/msvcrt/conio.h
+2
-3
crtdbg.h
include/msvcrt/crtdbg.h
+2
-3
crtdefs.h
include/msvcrt/crtdefs.h
+133
-0
ctype.h
include/msvcrt/ctype.h
+2
-16
direct.h
include/msvcrt/direct.h
+2
-31
dos.h
include/msvcrt/dos.h
+2
-3
eh.h
include/msvcrt/eh.h
+2
-3
errno.h
include/msvcrt/errno.h
+2
-3
fcntl.h
include/msvcrt/fcntl.h
+2
-3
float.h
include/msvcrt/float.h
+2
-3
io.h
include/msvcrt/io.h
+2
-27
limits.h
include/msvcrt/limits.h
+2
-0
locale.h
include/msvcrt/locale.h
+1
-9
malloc.h
include/msvcrt/malloc.h
+2
-24
math.h
include/msvcrt/math.h
+2
-3
mbctype.h
include/msvcrt/mbctype.h
+2
-3
mbstring.h
include/msvcrt/mbstring.h
+2
-24
memory.h
include/msvcrt/memory.h
+1
-23
process.h
include/msvcrt/process.h
+1
-29
search.h
include/msvcrt/search.h
+1
-24
setjmp.h
include/msvcrt/setjmp.h
+2
-3
signal.h
include/msvcrt/signal.h
+2
-3
stddef.h
include/msvcrt/stddef.h
+1
-57
stdio.h
include/msvcrt/stdio.h
+2
-37
stdlib.h
include/msvcrt/stdlib.h
+2
-32
string.h
include/msvcrt/string.h
+1
-30
stat.h
include/msvcrt/sys/stat.h
+2
-16
timeb.h
include/msvcrt/sys/timeb.h
+2
-8
types.h
include/msvcrt/sys/types.h
+1
-24
utime.h
include/msvcrt/sys/utime.h
+2
-15
time.h
include/msvcrt/time.h
+2
-36
wchar.h
include/msvcrt/wchar.h
+3
-49
wctype.h
include/msvcrt/wctype.h
+2
-16
No files found.
include/Makefile.in
View file @
33fa6c2e
...
...
@@ -290,6 +290,7 @@ SRCDIR_INCLUDES = \
mstcpip.h
\
msvcrt/conio.h
\
msvcrt/crtdbg.h
\
msvcrt/crtdefs.h
\
msvcrt/ctype.h
\
msvcrt/direct.h
\
msvcrt/dirent.h
\
...
...
include/msvcrt/conio.h
View file @
33fa6c2e
...
...
@@ -7,9 +7,8 @@
*/
#ifndef __WINE_CONIO_H
#define __WINE_CONIO_H
#ifndef __WINE_USE_MSVCRT
#define __WINE_USE_MSVCRT
#endif
#include <crtdefs.h>
#ifdef __cplusplus
extern
"C"
{
...
...
include/msvcrt/crtdbg.h
View file @
33fa6c2e
...
...
@@ -19,9 +19,8 @@
*/
#ifndef __WINE_CRTDBG_H_
#define __WINE_CRTDBG_H_
#ifndef __WINE_USE_MSVCRT
#define __WINE_USE_MSVCRT
#endif
#include <crtdefs.h>
/* The debug API is not implemented in Winelib.
* Redirect everything to the regular APIs.
...
...
include/msvcrt/crtdefs.h
0 → 100644
View file @
33fa6c2e
/*
* CRT definitions
*
* Copyright 2000 Francois Gouget.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef __WINE_USE_MSVCRT
#define __WINE_USE_MSVCRT
#endif
#if defined(__x86_64__) && !defined(_WIN64)
#define _WIN64
#endif
#if !defined(_MSC_VER) && !defined(__int64)
# if defined(_WIN64) && !defined(__MINGW64__)
# define __int64 long
# else
# define __int64 long long
# endif
#endif
#ifndef __stdcall
# ifdef __i386__
# ifdef __GNUC__
# ifdef __APPLE__
/* Mac OS X uses a 16-byte aligned stack and not a 4-byte one */
# define __stdcall __attribute__((__stdcall__)) __attribute__((__force_align_arg_pointer__))
# else
# define __stdcall __attribute__((__stdcall__))
# endif
# elif defined(_MSC_VER)
/* Nothing needs to be done. __stdcall already exists */
# else
# error You need to define __stdcall for your compiler
# endif
# elif defined(__x86_64__) && defined (__GNUC__)
# define __stdcall __attribute__((ms_abi))
# else
# define __stdcall
# endif
#endif
/* __stdcall */
#ifndef __cdecl
# if defined(__i386__) && defined(__GNUC__)
# ifdef __APPLE__
/* Mac OS X uses 16-byte aligned stack and not a 4-byte one */
# define __cdecl __attribute__((__cdecl__)) __attribute__((__force_align_arg_pointer__))
# else
# define __cdecl __attribute__((__cdecl__))
# endif
# elif defined(__x86_64__) && defined (__GNUC__)
# define __cdecl __attribute__((ms_abi))
# elif !defined(_MSC_VER)
# define __cdecl
# endif
#endif
/* __cdecl */
#ifndef _INTPTR_T_DEFINED
#ifdef _WIN64
typedef
__int64
intptr_t
;
#else
typedef
int
intptr_t
;
#endif
#define _INTPTR_T_DEFINED
#endif
#ifndef _UINTPTR_T_DEFINED
#ifdef _WIN64
typedef
unsigned
__int64
uintptr_t
;
#else
typedef
unsigned
int
uintptr_t
;
#endif
#define _UINTPTR_T_DEFINED
#endif
#ifndef _PTRDIFF_T_DEFINED
#ifdef _WIN64
typedef
__int64
ptrdiff_t
;
#else
typedef
int
ptrdiff_t
;
#endif
#define _PTRDIFF_T_DEFINED
#endif
#ifndef _SIZE_T_DEFINED
#ifdef _WIN64
typedef
unsigned
__int64
size_t
;
#else
typedef
unsigned
int
size_t
;
#endif
#define _SIZE_T_DEFINED
#endif
#ifndef _TIME_T_DEFINED
typedef
long
time_t
;
#define _TIME_T_DEFINED
#endif
#ifndef _TIME32_T_DEFINED
typedef
long
__time32_t
;
#define _TIME32_T_DEFINED
#endif
#ifndef _TIME64_T_DEFINED
typedef
__int64
__time64_t
;
#define _TIME64_T_DEFINED
#endif
#ifndef _WCHAR_T_DEFINED
#ifndef __cplusplus
typedef
unsigned
short
wchar_t
;
#endif
#define _WCHAR_T_DEFINED
#endif
#ifndef _WCTYPE_T_DEFINED
typedef
unsigned
short
wint_t
;
typedef
unsigned
short
wctype_t
;
#define _WCTYPE_T_DEFINED
#endif
include/msvcrt/ctype.h
View file @
33fa6c2e
...
...
@@ -7,31 +7,17 @@
*/
#ifndef __WINE_CTYPE_H
#define __WINE_CTYPE_H
#ifndef __WINE_USE_MSVCRT
#define __WINE_USE_MSVCRT
#endif
#include <crtdefs.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#ifndef _WCHAR_T_DEFINED
#define _WCHAR_T_DEFINED
#ifndef __cplusplus
typedef
unsigned
short
wchar_t
;
#endif
#endif
#ifndef WEOF
#define WEOF (wint_t)(0xFFFF)
#endif
#ifndef _WCTYPE_T_DEFINED
typedef
unsigned
short
wint_t
;
typedef
unsigned
short
wctype_t
;
#define _WCTYPE_T_DEFINED
#endif
/* ASCII char classification table - binary compatible */
#define _UPPER 0x0001
/* C1_UPPER */
#define _LOWER 0x0002
/* C1_LOWER */
...
...
include/msvcrt/direct.h
View file @
33fa6c2e
...
...
@@ -7,9 +7,8 @@
*/
#ifndef __WINE_DIRECT_H
#define __WINE_DIRECT_H
#ifndef __WINE_USE_MSVCRT
#define __WINE_USE_MSVCRT
#endif
#include <crtdefs.h>
#include <pshpack8.h>
...
...
@@ -17,34 +16,6 @@
extern
"C"
{
#endif
#ifndef _WCHAR_T_DEFINED
#define _WCHAR_T_DEFINED
#ifndef __cplusplus
typedef
unsigned
short
wchar_t
;
#endif
#endif
#if defined(__x86_64__) && !defined(_WIN64)
#define _WIN64
#endif
#if !defined(_MSC_VER) && !defined(__int64)
# if defined(_WIN64) && !defined(__MINGW64__)
# define __int64 long
# else
# define __int64 long long
# endif
#endif
#ifndef _SIZE_T_DEFINED
#ifdef _WIN64
typedef
unsigned
__int64
size_t
;
#else
typedef
unsigned
int
size_t
;
#endif
#define _SIZE_T_DEFINED
#endif
#ifndef _DISKFREE_T_DEFINED
#define _DISKFREE_T_DEFINED
struct
_diskfree_t
{
...
...
include/msvcrt/dos.h
View file @
33fa6c2e
...
...
@@ -7,9 +7,8 @@
*/
#ifndef __WINE_DOS_H
#define __WINE_DOS_H
#ifndef __WINE_USE_MSVCRT
#define __WINE_USE_MSVCRT
#endif
#include <crtdefs.h>
#include <pshpack8.h>
...
...
include/msvcrt/eh.h
View file @
33fa6c2e
...
...
@@ -19,9 +19,8 @@
*/
#ifndef __WINE_EH_H
#define __WINE_EH_H
#ifndef __WINE_USE_MSVCRT
#define __WINE_USE_MSVCRT
#endif
#include <crtdefs.h>
#if !defined(__cplusplus) && !defined(__WINE_MSVCRT_TEST)
#error "eh.h is meant only for C++ applications"
...
...
include/msvcrt/errno.h
View file @
33fa6c2e
...
...
@@ -18,9 +18,8 @@
#ifndef __WINE_ERRNO_H
#define __WINE_ERRNO_H
#ifndef __WINE_USE_MSVCRT
#define __WINE_USE_MSVCRT
#endif
#include <crtdefs.h>
# define EPERM 1
# define ENOENT 2
...
...
include/msvcrt/fcntl.h
View file @
33fa6c2e
...
...
@@ -7,9 +7,8 @@
*/
#ifndef __WINE_FCNTL_H
#define __WINE_FCNTL_H
#ifndef __WINE_USE_MSVCRT
#define __WINE_USE_MSVCRT
#endif
#include <crtdefs.h>
#define _O_RDONLY 0
#define _O_WRONLY 1
...
...
include/msvcrt/float.h
View file @
33fa6c2e
...
...
@@ -8,9 +8,8 @@
#ifndef __WINE_FLOAT_H
#define __WINE_FLOAT_H
#ifndef __WINE_USE_MSVCRT
#define __WINE_USE_MSVCRT
#endif
#include <crtdefs.h>
#ifdef __cplusplus
extern
"C"
{
...
...
include/msvcrt/io.h
View file @
33fa6c2e
...
...
@@ -7,30 +7,10 @@
*/
#ifndef __WINE_IO_H
#define __WINE_IO_H
#ifndef __WINE_USE_MSVCRT
#define __WINE_USE_MSVCRT
#endif
#include <pshpack8.h>
#ifndef _WCHAR_T_DEFINED
#define _WCHAR_T_DEFINED
#ifndef __cplusplus
typedef
unsigned
short
wchar_t
;
#endif
#endif
#include <crtdefs.h>
#if defined(__x86_64__) && !defined(_WIN64)
#define _WIN64
#endif
#if !defined(_MSC_VER) && !defined(__int64)
# if defined(_WIN64) && !defined(__MINGW64__)
# define __int64 long
# else
# define __int64 long long
# endif
#endif
#include <pshpack8.h>
/* The following are also defined in dos.h */
#define _A_NORMAL 0x00000000
...
...
@@ -41,11 +21,6 @@ typedef unsigned short wchar_t;
#define _A_SUBDIR 0x00000010
#define _A_ARCH 0x00000020
#ifndef _TIME_T_DEFINED
typedef
long
time_t
;
#define _TIME_T_DEFINED
#endif
#ifndef _FSIZE_T_DEFINED
typedef
unsigned
long
_fsize_t
;
#define _FSIZE_T_DEFINED
...
...
include/msvcrt/limits.h
View file @
33fa6c2e
#ifndef __WINE_LIMITS_H
#define __WINE_LIMITS_H
#include <crtdefs.h>
#define CHAR_BIT 8
#define MB_LEN_MAX 2
...
...
include/msvcrt/locale.h
View file @
33fa6c2e
...
...
@@ -19,16 +19,8 @@
*/
#ifndef __WINE_LOCALE_H
#define __WINE_LOCALE_H
#ifndef __WINE_USE_MSVCRT
#define __WINE_USE_MSVCRT
#endif
#ifndef _WCHAR_T_DEFINED
#define _WCHAR_T_DEFINED
#ifndef __cplusplus
typedef
unsigned
short
wchar_t
;
#endif
#endif
#include <crtdefs.h>
#define LC_ALL 0
#define LC_COLLATE 1
...
...
include/msvcrt/malloc.h
View file @
33fa6c2e
...
...
@@ -19,9 +19,8 @@
*/
#ifndef __WINE_MALLOC_H
#define __WINE_MALLOC_H
#ifndef __WINE_USE_MSVCRT
#define __WINE_USE_MSVCRT
#endif
#include <crtdefs.h>
/* heap function constants */
#define _HEAPEMPTY -1
...
...
@@ -34,27 +33,6 @@
#define _FREEENTRY 0
#define _USEDENTRY 1
#if defined(__x86_64__) && !defined(_WIN64)
#define _WIN64
#endif
#if !defined(_MSC_VER) && !defined(__int64)
# if defined(_WIN64) && !defined(__MINGW64__)
# define __int64 long
# else
# define __int64 long long
# endif
#endif
#ifndef _SIZE_T_DEFINED
#ifdef _WIN64
typedef
unsigned
__int64
size_t
;
#else
typedef
unsigned
int
size_t
;
#endif
#define _SIZE_T_DEFINED
#endif
#ifndef _HEAPINFO_DEFINED
#define _HEAPINFO_DEFINED
typedef
struct
_heapinfo
...
...
include/msvcrt/math.h
View file @
33fa6c2e
...
...
@@ -8,9 +8,8 @@
#ifndef __WINE_MATH_H
#define __WINE_MATH_H
#ifndef __WINE_USE_MSVCRT
#define __WINE_USE_MSVCRT
#endif
#include <crtdefs.h>
#include <pshpack8.h>
...
...
include/msvcrt/mbctype.h
View file @
33fa6c2e
...
...
@@ -19,9 +19,8 @@
*/
#ifndef __WINE_MBCTYPE_H
#define __WINE_MBCTYPE_H
#ifndef __WINE_USE_MSVCRT
#define __WINE_USE_MSVCRT
#endif
#include <crtdefs.h>
#ifdef __cplusplus
extern
"C"
{
...
...
include/msvcrt/mbstring.h
View file @
33fa6c2e
...
...
@@ -19,32 +19,10 @@
*/
#ifndef __WINE_MBSTRING_H
#define __WINE_MBSTRING_H
#ifndef __WINE_USE_MSVCRT
#define __WINE_USE_MSVCRT
#endif
#include <
pshpack8
.h>
#include <
crtdefs
.h>
#if defined(__x86_64__) && !defined(_WIN64)
#define _WIN64
#endif
#if !defined(_MSC_VER) && !defined(__int64)
# if defined(_WIN64) && !defined(__MINGW64__)
# define __int64 long
# else
# define __int64 long long
# endif
#endif
#ifndef _SIZE_T_DEFINED
#ifdef _WIN64
typedef
unsigned
__int64
size_t
;
#else
typedef
unsigned
int
size_t
;
#endif
#define _SIZE_T_DEFINED
#endif
#include <pshpack8.h>
#ifndef _NLSCMP_DEFINED
#define _NLSCMPERROR ((unsigned int)0x7fffffff)
...
...
include/msvcrt/memory.h
View file @
33fa6c2e
...
...
@@ -7,30 +7,8 @@
*/
#ifndef __WINE_MEMORY_H
#define __WINE_MEMORY_H
#ifndef __WINE_USE_MSVCRT
#define __WINE_USE_MSVCRT
#endif
#if defined(__x86_64__) && !defined(_WIN64)
#define _WIN64
#endif
#if !defined(_MSC_VER) && !defined(__int64)
# if defined(_WIN64) && !defined(__MINGW64__)
# define __int64 long
# else
# define __int64 long long
# endif
#endif
#ifndef _SIZE_T_DEFINED
#ifdef _WIN64
typedef
unsigned
__int64
size_t
;
#else
typedef
unsigned
int
size_t
;
#endif
#define _SIZE_T_DEFINED
#endif
#include <crtdefs.h>
#ifdef __cplusplus
extern
"C"
{
...
...
include/msvcrt/process.h
View file @
33fa6c2e
...
...
@@ -7,16 +7,8 @@
*/
#ifndef __WINE_PROCESS_H
#define __WINE_PROCESS_H
#ifndef __WINE_USE_MSVCRT
#define __WINE_USE_MSVCRT
#endif
#ifndef _WCHAR_T_DEFINED
#define _WCHAR_T_DEFINED
#ifndef __cplusplus
typedef
unsigned
short
wchar_t
;
#endif
#endif
#include <crtdefs.h>
/* Process creation flags */
#define _P_WAIT 0
...
...
@@ -28,26 +20,6 @@ typedef unsigned short wchar_t;
#define _WAIT_CHILD 0
#define _WAIT_GRANDCHILD 1
#ifndef __stdcall
# ifdef __i386__
# ifdef __GNUC__
# ifdef __APPLE__
/* Mac OS X uses a 16-byte aligned stack and not a 4-byte one */
# define __stdcall __attribute__((__stdcall__)) __attribute__((__force_align_arg_pointer__))
# else
# define __stdcall __attribute__((__stdcall__))
# endif
# elif defined(_MSC_VER)
/* Nothing needs to be done. __stdcall already exists */
# else
# error You need to define __stdcall for your compiler
# endif
# elif defined(__x86_64__) && defined (__GNUC__)
# define __stdcall __attribute__((ms_abi))
# else
# define __stdcall
# endif
#endif
/* __stdcall */
#ifdef __cplusplus
extern
"C"
{
#endif
...
...
include/msvcrt/search.h
View file @
33fa6c2e
...
...
@@ -19,31 +19,8 @@
*/
#ifndef __WINE_SEARCH_H
#define __WINE_SEARCH_H
#ifndef __WINE_USE_MSVCRT
#define __WINE_USE_MSVCRT
#endif
#if defined(__x86_64__) && !defined(_WIN64)
#define _WIN64
#endif
#if !defined(_MSC_VER) && !defined(__int64)
# if defined(_WIN64) && !defined(__MINGW64__)
# define __int64 long
# else
# define __int64 long long
# endif
#endif
#ifndef _SIZE_T_DEFINED
#ifdef _WIN64
typedef
unsigned
__int64
size_t
;
#else
typedef
unsigned
int
size_t
;
#endif
#define _SIZE_T_DEFINED
#endif
#include <crtdefs.h>
#ifdef __cplusplus
extern
"C"
{
...
...
include/msvcrt/setjmp.h
View file @
33fa6c2e
...
...
@@ -19,9 +19,8 @@
*/
#ifndef __WINE_SETJMP_H
#define __WINE_SETJMP_H
#ifndef __WINE_USE_MSVCRT
#define __WINE_USE_MSVCRT
#endif
#include <crtdefs.h>
#include <pshpack8.h>
...
...
include/msvcrt/signal.h
View file @
33fa6c2e
...
...
@@ -19,9 +19,8 @@
*/
#ifndef _WINE_SIGNAL_H
#define _WINE_SIGNAL_H
#ifndef __WINE_USE_MSVCRT
#define __WINE_USE_MSVCRT
#endif
#include <crtdefs.h>
#define SIGINT 2
#define SIGILL 4
...
...
include/msvcrt/stddef.h
View file @
33fa6c2e
...
...
@@ -19,64 +19,8 @@
*/
#ifndef __WINE_STDDEF_H
#define __WINE_STDDEF_H
#ifndef __WINE_USE_MSVCRT
#define __WINE_USE_MSVCRT
#endif
#if defined(__x86_64__) && !defined(_WIN64)
#define _WIN64
#endif
#if !defined(_MSC_VER) && !defined(__int64)
# if defined(_WIN64) && !defined(__MINGW64__)
# define __int64 long
# else
# define __int64 long long
# endif
#endif
#ifndef _WCHAR_T_DEFINED
#define _WCHAR_T_DEFINED
#ifndef __cplusplus
typedef
unsigned
short
wchar_t
;
#endif
#endif
#ifndef _INTPTR_T_DEFINED
#ifdef _WIN64
typedef
__int64
intptr_t
;
#else
typedef
int
intptr_t
;
#endif
#define _INTPTR_T_DEFINED
#endif
#ifndef _UINTPTR_T_DEFINED
#ifdef _WIN64
typedef
unsigned
__int64
uintptr_t
;
#else
typedef
unsigned
int
uintptr_t
;
#endif
#define _UINTPTR_T_DEFINED
#endif
#ifndef _PTRDIFF_T_DEFINED
#ifdef _WIN64
typedef
__int64
ptrdiff_t
;
#else
typedef
int
ptrdiff_t
;
#endif
#define _PTRDIFF_T_DEFINED
#endif
#ifndef _SIZE_T_DEFINED
#ifdef _WIN64
typedef
unsigned
__int64
size_t
;
#else
typedef
unsigned
int
size_t
;
#endif
#define _SIZE_T_DEFINED
#endif
#include <crtdefs.h>
#ifndef NULL
#ifdef __cplusplus
...
...
include/msvcrt/stdio.h
View file @
33fa6c2e
...
...
@@ -7,27 +7,14 @@
*/
#ifndef __WINE_STDIO_H
#define __WINE_STDIO_H
#ifndef __WINE_USE_MSVCRT
#define __WINE_USE_MSVCRT
#endif
#include <
pshpack8
.h>
#include <
crtdefs
.h>
#ifndef RC_INVOKED
#include <stdarg.h>
#endif
#if defined(__x86_64__) && !defined(_WIN64)
#define _WIN64
#endif
#if !defined(_MSC_VER) && !defined(__int64)
# if defined(_WIN64) && !defined(__MINGW64__)
# define __int64 long
# else
# define __int64 long long
# endif
#endif
#include <pshpack8.h>
/* file._flag flags */
#define _IOREAD 0x0001
...
...
@@ -89,28 +76,6 @@ typedef __int64 fpos_t;
#define _FPOS_T_DEFINED
#endif
#ifndef _SIZE_T_DEFINED
#ifdef _WIN64
typedef
unsigned
__int64
size_t
;
#else
typedef
unsigned
int
size_t
;
#endif
#define _SIZE_T_DEFINED
#endif
#ifndef _WCHAR_T_DEFINED
#define _WCHAR_T_DEFINED
#ifndef __cplusplus
typedef
unsigned
short
wchar_t
;
#endif
#endif
#ifndef _WCTYPE_T_DEFINED
typedef
unsigned
short
wint_t
;
typedef
unsigned
short
wctype_t
;
#define _WCTYPE_T_DEFINED
#endif
#ifdef __cplusplus
extern
"C"
{
#endif
...
...
include/msvcrt/stdlib.h
View file @
33fa6c2e
...
...
@@ -7,9 +7,8 @@
*/
#ifndef __WINE_STDLIB_H
#define __WINE_STDLIB_H
#ifndef __WINE_USE_MSVCRT
#define __WINE_USE_MSVCRT
#endif
#include <crtdefs.h>
#include <pshpack8.h>
...
...
@@ -21,14 +20,6 @@
#endif
#endif
#ifndef _WCHAR_T_DEFINED
#define _WCHAR_T_DEFINED
#ifndef __cplusplus
typedef
unsigned
short
wchar_t
;
#endif
#endif
typedef
struct
{
float
f
;
...
...
@@ -44,18 +35,6 @@ typedef struct
unsigned
char
ld
[
10
];
}
_LDOUBLE
;
#if defined(__x86_64__) && !defined(_WIN64)
#define _WIN64
#endif
#if !defined(_MSC_VER) && !defined(__int64)
# if defined(_WIN64) && !defined(__MINGW64__)
# define __int64 long
# else
# define __int64 long long
# endif
#endif
#define EXIT_SUCCESS 0
#define EXIT_FAILURE -1
#define RAND_MAX 0x7FFF
...
...
@@ -79,15 +58,6 @@ typedef struct _ldiv_t {
long
rem
;
}
ldiv_t
;
#ifndef _SIZE_T_DEFINED
#ifdef _WIN64
typedef
unsigned
__int64
size_t
;
#else
typedef
unsigned
int
size_t
;
#endif
#define _SIZE_T_DEFINED
#endif
#define __max(a,b) (((a) > (b)) ? (a) : (b))
#define __min(a,b) (((a) < (b)) ? (a) : (b))
#ifndef __cplusplus
...
...
include/msvcrt/string.h
View file @
33fa6c2e
...
...
@@ -7,37 +7,8 @@
*/
#ifndef __WINE_STRING_H
#define __WINE_STRING_H
#ifndef __WINE_USE_MSVCRT
#define __WINE_USE_MSVCRT
#endif
#ifndef _WCHAR_T_DEFINED
#define _WCHAR_T_DEFINED
#ifndef __cplusplus
typedef
unsigned
short
wchar_t
;
#endif
#endif
#if defined(__x86_64__) && !defined(_WIN64)
#define _WIN64
#endif
#if !defined(_MSC_VER) && !defined(__int64)
# if defined(_WIN64) && !defined(__MINGW64__)
# define __int64 long
# else
# define __int64 long long
# endif
#endif
#ifndef _SIZE_T_DEFINED
#ifdef _WIN64
typedef
unsigned
__int64
size_t
;
#else
typedef
unsigned
int
size_t
;
#endif
#define _SIZE_T_DEFINED
#endif
#include <crtdefs.h>
#ifndef _NLSCMP_DEFINED
#define _NLSCMPERROR ((unsigned int)0x7fffffff)
...
...
include/msvcrt/sys/stat.h
View file @
33fa6c2e
...
...
@@ -7,20 +7,11 @@
*/
#ifndef __WINE_SYS_STAT_H
#define __WINE_SYS_STAT_H
#ifndef __WINE_USE_MSVCRT
#define __WINE_USE_MSVCRT
#endif
#include <pshpack8.h>
#include <crtdefs.h>
#include <sys/types.h>
#ifndef _WCHAR_T_DEFINED
#define _WCHAR_T_DEFINED
#ifndef __cplusplus
typedef
unsigned
short
wchar_t
;
#endif
#endif
#include <pshpack8.h>
#ifndef _DEV_T_DEFINED
typedef
unsigned
int
_dev_t
;
...
...
@@ -32,11 +23,6 @@ typedef unsigned short _ino_t;
#define _INO_T_DEFINED
#endif
#ifndef _TIME_T_DEFINED
typedef
long
time_t
;
#define _TIME_T_DEFINED
#endif
#ifndef _OFF_T_DEFINED
typedef
int
_off_t
;
#define _OFF_T_DEFINED
...
...
include/msvcrt/sys/timeb.h
View file @
33fa6c2e
...
...
@@ -19,16 +19,10 @@
*/
#ifndef __WINE_SYS_TIMEB_H
#define __WINE_SYS_TIMEB_H
#ifndef __WINE_USE_MSVCRT
#define __WINE_USE_MSVCRT
#endif
#include <
pshpack8
.h>
#include <
crtdefs
.h>
#ifndef _TIME_T_DEFINED
typedef
long
time_t
;
#define _TIME_T_DEFINED
#endif
#include <pshpack8.h>
#ifndef _TIMEB_DEFINED
#define _TIMEB_DEFINED
...
...
include/msvcrt/sys/types.h
View file @
33fa6c2e
...
...
@@ -19,21 +19,8 @@
*/
#ifndef __WINE_SYS_TYPES_H
#define __WINE_SYS_TYPES_H
#ifndef __WINE_USE_MSVCRT
#define __WINE_USE_MSVCRT
#endif
#if defined(__x86_64__) && !defined(_WIN64)
#define _WIN64
#endif
#if !defined(_MSC_VER) && !defined(__int64)
# if defined(_WIN64) && !defined(__MINGW64__)
# define __int64 long
# else
# define __int64 long long
# endif
#endif
#include <crtdefs.h>
#ifndef _DEV_T_DEFINED
typedef
unsigned
int
_dev_t
;
...
...
@@ -55,16 +42,6 @@ typedef int _off_t;
#define _OFF_T_DEFINED
#endif
#ifndef _TIME_T_DEFINED
typedef
long
time_t
;
#define _TIME_T_DEFINED
#endif
#ifndef _TIME64_T_DEFINED
#define _TIME64_T_DEFINED
typedef
__int64
__time64_t
;
#endif
#ifndef _BSDTYPES_DEFINED
typedef
unsigned
char
u_char
;
typedef
unsigned
short
u_short
;
...
...
include/msvcrt/sys/utime.h
View file @
33fa6c2e
...
...
@@ -19,23 +19,10 @@
*/
#ifndef __WINE_SYS_UTIME_H
#define __WINE_SYS_UTIME_H
#ifndef __WINE_USE_MSVCRT
#define __WINE_USE_MSVCRT
#endif
#include <
pshpack8
.h>
#include <
crtdefs
.h>
#ifndef _WCHAR_T_DEFINED
#define _WCHAR_T_DEFINED
#ifndef __cplusplus
typedef
unsigned
short
wchar_t
;
#endif
#endif
#ifndef _TIME_T_DEFINED
typedef
long
time_t
;
#define _TIME_T_DEFINED
#endif
#include <pshpack8.h>
#ifndef _UTIMBUF_DEFINED
#define _UTIMBUF_DEFINED
...
...
include/msvcrt/time.h
View file @
33fa6c2e
...
...
@@ -19,44 +19,10 @@
*/
#ifndef __WINE_TIME_H
#define __WINE_TIME_H
#ifndef __WINE_USE_MSVCRT
#define __WINE_USE_MSVCRT
#endif
#include <pshpack8.h>
#ifndef _WCHAR_T_DEFINED
#define _WCHAR_T_DEFINED
#ifndef __cplusplus
typedef
unsigned
short
wchar_t
;
#endif
#endif
#if defined(__x86_64__) && !defined(_WIN64)
#define _WIN64
#endif
#include <crtdefs.h>
#if !defined(_MSC_VER) && !defined(__int64)
# if defined(_WIN64) && !defined(__MINGW64__)
# define __int64 long
# else
# define __int64 long long
# endif
#endif
#ifndef _SIZE_T_DEFINED
#ifdef _WIN64
typedef
unsigned
__int64
size_t
;
#else
typedef
unsigned
int
size_t
;
#endif
#define _SIZE_T_DEFINED
#endif
#ifndef _TIME_T_DEFINED
typedef
long
time_t
;
#define _TIME_T_DEFINED
#endif
#include <pshpack8.h>
#ifndef _CLOCK_T_DEFINED
typedef
long
clock_t
;
...
...
include/msvcrt/wchar.h
View file @
33fa6c2e
...
...
@@ -7,25 +7,16 @@
*/
#ifndef __WINE_WCHAR_H
#define __WINE_WCHAR_H
#ifndef __WINE_USE_MSVCRT
#define __WINE_USE_MSVCRT
#endif
#include <pshpack8.h>
#include <crtdefs.h>
#include <stdarg.h>
#include <pshpack8.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#ifndef _WCHAR_T_DEFINED
#define _WCHAR_T_DEFINED
#ifndef __cplusplus
typedef
unsigned
short
wchar_t
;
#endif
#endif
#ifndef NULL
#ifdef __cplusplus
#define NULL 0
...
...
@@ -37,18 +28,6 @@ typedef unsigned short wchar_t;
#define WCHAR_MIN 0
#define WCHAR_MAX ((wchar_t)-1)
#if defined(__x86_64__) && !defined(_WIN64)
#define _WIN64
#endif
#if !defined(_MSC_VER) && !defined(__int64)
# if defined(_WIN64) && !defined(__MINGW64__)
# define __int64 long
# else
# define __int64 long long
# endif
#endif
#ifndef DECLSPEC_ALIGN
# if defined(_MSC_VER) && (_MSC_VER >= 1300) && !defined(MIDL_PASS)
# define DECLSPEC_ALIGN(x) __declspec(align(x))
...
...
@@ -61,21 +40,6 @@ typedef unsigned short wchar_t;
typedef
int
mbstate_t
;
#ifndef _SIZE_T_DEFINED
#ifdef _WIN64
typedef
unsigned
__int64
size_t
;
#else
typedef
unsigned
int
size_t
;
#endif
#define _SIZE_T_DEFINED
#endif
#ifndef _WCTYPE_T_DEFINED
typedef
unsigned
short
wint_t
;
typedef
unsigned
short
wctype_t
;
#define _WCTYPE_T_DEFINED
#endif
#ifndef WEOF
#define WEOF (wint_t)(0xFFFF)
#endif
...
...
@@ -100,16 +64,6 @@ typedef int _off_t;
#define _OFF_T_DEFINED
#endif
#ifndef _TIME_T_DEFINED
typedef
long
time_t
;
#define _TIME_T_DEFINED
#endif
#ifndef _TIME64_T_DEFINED
#define _TIME64_T_DEFINED
typedef
__int64
__time64_t
;
#endif
#ifndef _TM_DEFINED
#define _TM_DEFINED
struct
tm
{
...
...
include/msvcrt/wctype.h
View file @
33fa6c2e
...
...
@@ -19,18 +19,10 @@
*/
#ifndef __WINE_WCTYPE_H
#define __WINE_WCTYPE_H
#ifndef __WINE_USE_MSVCRT
#define __WINE_USE_MSVCRT
#endif
#include <
pshpack8
.h>
#include <
crtdefs
.h>
#ifndef _WCHAR_T_DEFINED
#define _WCHAR_T_DEFINED
#ifndef __cplusplus
typedef
unsigned
short
wchar_t
;
#endif
#endif
#include <pshpack8.h>
/* ASCII char classification table - binary compatible */
#define _UPPER 0x0001
/* C1_UPPER */
...
...
@@ -48,12 +40,6 @@ typedef unsigned short wchar_t;
#define WEOF (wint_t)(0xFFFF)
#endif
#ifndef _WCTYPE_T_DEFINED
typedef
unsigned
short
wint_t
;
typedef
unsigned
short
wctype_t
;
#define _WCTYPE_T_DEFINED
#endif
/* FIXME: there's something to do with __p__pctype and __p__pwctype */
...
...
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