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
2d0bb2a7
Commit
2d0bb2a7
authored
Jul 04, 1999
by
Patrik Stridvall
Committed by
Alexandre Julliard
Jul 04, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Started on an implementation of Win64 for use on 64 bit platforms.
parent
c01509cc
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
151 additions
and
16 deletions
+151
-16
Makefile.in
Makefile.in
+1
-1
ddraw.c
graphics/ddraw.c
+0
-4
basetsd.h
include/basetsd.h
+145
-0
ntdef.h
include/ntdef.h
+1
-1
ts_xf86vmode.h
include/ts_xf86vmode.h
+1
-1
winbase.h
include/winbase.h
+1
-0
windef.h
include/windef.h
+0
-3
winreg.h
include/winreg.h
+0
-4
make_X11wrappers
tools/make_X11wrappers
+1
-1
ts_xf86vmode.c
tsx11/ts_xf86vmode.c
+1
-1
No files found.
Makefile.in
View file @
2d0bb2a7
...
@@ -240,7 +240,7 @@ htmlpages:
...
@@ -240,7 +240,7 @@ htmlpages:
clean
::
clean
::
for
i
in
$(BUILDSUBDIRS)
;
do
(
cd
$$
i
;
$(MAKE)
clean
)
||
exit
1
;
done
for
i
in
$(BUILDSUBDIRS)
;
do
(
cd
$$
i
;
$(MAKE)
clean
)
||
exit
1
;
done
for
i
in
include include/bitmaps include/
server include/
wine
;
do
(
cd
$$
i
;
$(RM)
*
.o
\#
*
\#
.#
*
*
~
*
%
*
.bak
*
.orig
*
.rej
*
.flc
)
;
done
for
i
in
include include/bitmaps include/wine
;
do
(
cd
$$
i
;
$(RM)
*
.o
\#
*
\#
.#
*
*
~
*
%
*
.bak
*
.orig
*
.rej
*
.flc
)
;
done
$(RM)
wine wine.sym libwine.a libwine.so.1.0 libwine.so TAGS .#
*
$(RM)
wine wine.sym libwine.a libwine.so.1.0 libwine.so TAGS .#
*
distclean
:
clean
distclean
:
clean
...
...
graphics/ddraw.c
View file @
2d0bb2a7
...
@@ -33,10 +33,6 @@
...
@@ -33,10 +33,6 @@
#endif
/* defined(HAVE_LIBXXF86DGA) */
#endif
/* defined(HAVE_LIBXXF86DGA) */
#ifdef HAVE_LIBXXF86VM
#ifdef HAVE_LIBXXF86VM
/* X is retarted and insists on declaring INT32, INT16 etc in Xmd.h,
this is a crude hack to get around it */
#define XMD_H
typedef
int
INT32
;
#include "ts_xf86vmode.h"
#include "ts_xf86vmode.h"
#endif
/* defined(HAVE_LIBXXF86VM) */
#endif
/* defined(HAVE_LIBXXF86VM) */
...
...
include/basetsd.h
0 → 100644
View file @
2d0bb2a7
/*
* Compilers that uses ILP32, LP64 or P64 type models
* for both Win32 and Win64 are supported by this file.
*/
#ifndef __WINE_BASETSD_H
#define __WINE_BASETSD_H
#ifdef __WINE__
#include "config.h"
#endif
/* defined(__WINE__) */
#ifdef __cplusplus
extern
"C"
{
#endif
/* defined(__cplusplus) */
/*
* Win32 was easy to implement under Unix since most (all?) 32-bit
* Unices uses the same type model (ILP32) as Win32, where int, long
* and pointer are 32-bit.
*
* Win64, however, will cause some problems when implemented under Unix.
* Linux/{Alpha, Sparc64} and most (all?) other 64-bit Unices uses
* the LP64 type model where int is 32-bit and long and pointer are
* 64-bit. Win64 on the other hand uses the P64 (sometimes called LLP64)
* type model where int and long are 32 bit and pointer is 64-bit.
*/
/* Type model indepent typedefs */
typedef
char
__int8
;
typedef
unsigned
char
__uint8
;
typedef
short
__int16
;
typedef
unsigned
short
__uint16
;
typedef
int
__int32
;
typedef
unsigned
int
__uint32
;
typedef
long
long
__int64
;
typedef
unsigned
long
long
__uint64
;
#if defined(_WIN64)
typedef
__uint32
__ptr32
;
typedef
void
*
__ptr64
;
#else
/* FIXME: defined(_WIN32) */
typedef
void
*
__ptr32
;
typedef
__uint64
__ptr64
;
#endif
/* Always signed and 32 bit wide */
typedef
__int32
LONG32
;
typedef
__int32
INT32
;
typedef
LONG32
*
PLONG32
;
typedef
INT32
*
PINT32
;
/* Always unsigned and 32 bit wide */
typedef
__uint32
ULONG32
;
typedef
__uint32
DWORD32
;
typedef
__uint32
UINT32
;
typedef
ULONG32
*
PULONG32
;
typedef
DWORD32
*
PDWORD32
;
typedef
UINT32
*
PUINT32
;
/* Always signed and 64 bit wide */
typedef
__int64
LONG64
;
typedef
__int64
INT64
;
typedef
LONG64
*
PLONG64
;
typedef
INT64
*
PINT64
;
/* Always unsigned and 64 bit wide */
typedef
__uint64
ULONG64
;
typedef
__uint64
DWORD64
;
typedef
__uint64
UINT64
;
typedef
ULONG64
*
PULONG64
;
typedef
DWORD64
*
PDWORD64
;
typedef
UINT64
*
PUINT64
;
/* Win32 or Win64 dependent typedef/defines. */
#ifdef _WIN64
typedef
__int64
INT_PTR
,
*
PINT_PTR
;
typedef
__uint64
UINT_PTR
,
*
PUINT_PTR
;
#define MAXINT_PTR 0x7fffffffffffffff
#define MININT_PTR 0x8000000000000000
#define MAXUINT_PTR 0xffffffffffffffff
typedef
__int32
HALF_PTR
,
*
PHALF_PTR
;
typedef
__int32
UHALF_PTR
,
*
PUHALF_PTR
;
#define MAXHALF_PTR 0x7fffffff
#define MINHALF_PTR 0x80000000
#define MAXUHALF_PTR 0xffffffff
typedef
__int64
LONG_PTR
,
*
PLONG_PTR
;
typedef
__uint64
ULONG_PTR
,
*
PULONG_PTR
;
typedef
__uint64
DWORD_PTR
,
*
PDWORD_PTR
;
#else
/* FIXME: defined(_WIN32) */
typedef
__int32
INT_PTR
,
*
PINT_PTR
;
typedef
__uint32
UINT_PTR
,
*
PUINT_PTR
;
#define MAXINT_PTR 0x7fffffff
#define MININT_PTR 0x80000000
#define MAXUINT_PTR 0xffffffff
typedef
__int16
HALF_PTR
,
*
PHALF_PTR
;
typedef
__uint16
UHALF_PTR
,
*
PUHALF_PTR
;
#define MAXUHALF_PTR 0xffff
#define MAXHALF_PTR 0x7fff
#define MINHALF_PTR 0x8000
typedef
__int32
LONG_PTR
,
*
PLONG_PTR
;
typedef
__uint32
ULONG_PTR
,
*
PULONG_PTR
;
typedef
__uint32
DWORD_PTR
,
*
PDWORD_PTR
;
#endif
/* defined(_WIN64) || defined(_WIN32) */
typedef
INT_PTR
SSIZE_T
,
*
PSSIZE_T
;
typedef
UINT_PTR
SIZE_T
,
*
PSIZE_T
;
#ifdef __cplusplus
}
/* extern "C" */
#endif
/* defined(__cplusplus) */
#endif
/* !defined(__WINE_BASETSD_H) */
include/ntdef.h
View file @
2d0bb2a7
#ifndef __WINE_NTDEF_H
#ifndef __WINE_NTDEF_H
#define __WINE_NTDEF_H
#define __WINE_NTDEF_H
/* fixme: include basestd.h instead */
#include "basetsd.h"
#include "windef.h"
#include "windef.h"
#ifdef __cplusplus
#ifdef __cplusplus
...
...
include/ts_xf86vmode.h
View file @
2d0bb2a7
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
#include "windef.h"
#include "windef.h"
#ifdef HAVE_LIBXXF86VM
#ifdef HAVE_LIBXXF86VM
#define XMD_H
#define XMD_H
#
define INT32 INT
#
include "basetsd.h"
#include <X11/Xlib.h>
#include <X11/Xlib.h>
#include <X11/extensions/xf86vmode.h>
#include <X11/extensions/xf86vmode.h>
...
...
include/winbase.h
View file @
2d0bb2a7
#ifndef __WINE_WINBASE_H
#ifndef __WINE_WINBASE_H
#define __WINE_WINBASE_H
#define __WINE_WINBASE_H
#include "basetsd.h"
#include "winnt.h"
#include "winnt.h"
#include "wine/winestring.h"
#include "wine/winestring.h"
...
...
include/windef.h
View file @
2d0bb2a7
...
@@ -113,8 +113,6 @@ typedef unsigned short WCHAR;
...
@@ -113,8 +113,6 @@ typedef unsigned short WCHAR;
typedef
unsigned
short
BOOL16
;
typedef
unsigned
short
BOOL16
;
typedef
int
BOOL
;
typedef
int
BOOL
;
typedef
double
DATE
;
typedef
double
DATE
;
typedef
long
LONG_PTR
;
typedef
unsigned
long
ULONG_PTR
;
typedef
double
DOUBLE
;
typedef
double
DOUBLE
;
typedef
double
LONGLONG
;
typedef
double
LONGLONG
;
typedef
double
ULONGLONG
;
typedef
double
ULONGLONG
;
...
@@ -152,7 +150,6 @@ typedef DWORD LCID;
...
@@ -152,7 +150,6 @@ typedef DWORD LCID;
typedef
WORD
LANGID
;
typedef
WORD
LANGID
;
typedef
DWORD
LCTYPE
;
typedef
DWORD
LCTYPE
;
typedef
float
FLOAT
;
typedef
float
FLOAT
;
typedef
long
long
__int64
;
/* Pointers types. These are the same for emulator and library. */
/* Pointers types. These are the same for emulator and library. */
/* winnt types */
/* winnt types */
...
...
include/winreg.h
View file @
2d0bb2a7
...
@@ -80,10 +80,6 @@ extern "C" {
...
@@ -80,10 +80,6 @@ extern "C" {
KEY_CREATE_LINK \
KEY_CREATE_LINK \
)
)
/* fixme: move it to basetsd.h */
typedef
ULONG_PTR
DWORD_PTR
,
*
PDWORD_PTR
;
/* end fixme */
/*
/*
* registry provider structs
* registry provider structs
*/
*/
...
...
tools/make_X11wrappers
View file @
2d0bb2a7
...
@@ -69,7 +69,7 @@ foreach $name (@dolist) {
...
@@ -69,7 +69,7 @@ foreach $name (@dolist) {
if
(
$name
eq
"xf86vmode"
)
{
if
(
$name
eq
"xf86vmode"
)
{
$x11_incl
=
"#include <X11/Xlib.h>\n"
;
$x11_incl
=
"#include <X11/Xlib.h>\n"
;
$extensions_dir
=
"extensions/"
;
$extensions_dir
=
"extensions/"
;
$pre_file
=
"#include \"windef.h\"\n#ifdef HAVE_LIBXXF86VM\n#define XMD_H\n#
define INT32 INT
\n"
;
$pre_file
=
"#include \"windef.h\"\n#ifdef HAVE_LIBXXF86VM\n#define XMD_H\n#
include \"basetsd.h\"
\n"
;
$post_file
=
"#endif /* defined(HAVE_LIBXXF86VM) */\n"
;
$post_file
=
"#endif /* defined(HAVE_LIBXXF86VM) */\n"
;
}
}
...
...
tsx11/ts_xf86vmode.c
View file @
2d0bb2a7
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
#include "windef.h"
#include "windef.h"
#ifdef HAVE_LIBXXF86VM
#ifdef HAVE_LIBXXF86VM
#define XMD_H
#define XMD_H
#
define INT32 INT
#
include "basetsd.h"
#include <X11/Xlib.h>
#include <X11/Xlib.h>
#include <X11/extensions/xf86vmode.h>
#include <X11/extensions/xf86vmode.h>
...
...
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