Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
bdf01c36
Commit
bdf01c36
authored
Sep 22, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define data types to the correct size on 64-bit platforms.
parent
470f23d4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
3 deletions
+25
-3
basetsd.h
include/basetsd.h
+9
-1
windef.h
include/windef.h
+12
-2
winnt.h
include/winnt.h
+4
-0
No files found.
include/basetsd.h
View file @
bdf01c36
...
...
@@ -38,6 +38,10 @@ extern "C" {
* type model where int and long are 32 bit and pointer is 64-bit.
*/
#ifdef __x86_64__
#define _WIN64
#endif
/* Type model independent typedefs */
/* The __intXX types are native types defined by the MS C compiler.
* Apps that make use of them before they get defined here, can
...
...
@@ -55,7 +59,11 @@ extern "C" {
# define __int32 int
# endif
# ifndef __int64
# define __int64 long long
# ifdef _WIN64
# define __int64 long
# else
# define __int64 long long
# endif
# endif
#endif
/* !defined(_MSC_VER) */
...
...
include/windef.h
View file @
bdf01c36
...
...
@@ -41,6 +41,10 @@ extern "C" {
# define _X86_
#endif
#ifdef __x86_64__
#define _WIN64
#endif
#ifndef __stdcall
# ifdef __i386__
# ifdef __GNUC__
...
...
@@ -174,11 +178,17 @@ typedef unsigned short WORD, *PWORD, *LPWORD;
typedef
unsigned
short
USHORT
,
*
PUSHORT
;
typedef
int
INT
,
*
PINT
,
*
LPINT
;
typedef
unsigned
int
UINT
,
*
PUINT
;
typedef
float
FLOAT
,
*
PFLOAT
;
typedef
char
*
PSZ
;
#if defined(_WIN64) && !defined(_MSC_VER)
typedef
int
*
LPLONG
;
typedef
unsigned
int
DWORD
,
*
PDWORD
,
*
LPDWORD
;
typedef
unsigned
int
ULONG
,
*
PULONG
;
#else
typedef
long
*
LPLONG
;
typedef
unsigned
long
DWORD
,
*
PDWORD
,
*
LPDWORD
;
typedef
unsigned
long
ULONG
,
*
PULONG
;
typedef
float
FLOAT
,
*
PFLOAT
;
typedef
char
*
PSZ
;
#endif
/* Macros to map Winelib names to the correct implementation name */
/* Note that Winelib is purely Win32. */
...
...
include/winnt.h
View file @
bdf01c36
...
...
@@ -300,7 +300,11 @@ typedef VOID *PVOID64;
typedef
BYTE
BOOLEAN
,
*
PBOOLEAN
;
typedef
char
CHAR
,
*
PCHAR
;
typedef
short
SHORT
,
*
PSHORT
;
#if defined(_WIN64) && !defined(_MSC_VER)
typedef
int
LONG
,
*
PLONG
;
#else
typedef
long
LONG
,
*
PLONG
;
#endif
/* Some systems might have wchar_t, but we really need 16 bit characters */
#ifdef WINE_UNICODE_NATIVE
...
...
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