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
47a88ba2
Commit
47a88ba2
authored
May 04, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Explicitly specify alignment of 64-bit types.
parent
a11b2bba
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
37 additions
and
10 deletions
+37
-10
axcore.idl
include/axcore.idl
+1
-1
basetsd.h
include/basetsd.h
+16
-5
strmif.h
include/strmif.h
+1
-1
winnt.h
include/winnt.h
+3
-3
wtypes.h
include/wtypes.h
+8
-0
wtypes.idl
include/wtypes.idl
+8
-0
No files found.
include/axcore.idl
View file @
47a88ba2
...
...
@@ -48,7 +48,7 @@ cpp_quote("#define MAX_PIN_NAME 128")
cpp_quote
(
"#define MAX_FILTER_NAME 128"
)
typedef
LONGLONG
REFERENCE_TIME
;
typedef
double
REFTIME
;
typedef
DOUBLE
REFTIME
;
typedef
DWORD_PTR
HSEMAPHORE
;
typedef
DWORD_PTR
HEVENT
;
...
...
include/basetsd.h
View file @
47a88ba2
...
...
@@ -59,20 +59,31 @@ extern "C" {
# endif
#endif
/* !defined(_MSC_VER) */
/* FIXME: DECLSPEC_ALIGN should be declared only in winnt.h, but we need it here too */
#ifndef DECLSPEC_ALIGN
# if defined(_MSC_VER) && (_MSC_VER >= 1300) && !defined(MIDL_PASS)
# define DECLSPEC_ALIGN(x) __declspec(align(x))
# elif defined(__GNUC__)
# define DECLSPEC_ALIGN(x) __attribute__((aligned(x)))
# else
# define DECLSPEC_ALIGN(x)
# endif
#endif
typedef
signed
char
INT8
,
*
PINT8
;
typedef
signed
short
INT16
,
*
PINT16
;
typedef
signed
int
INT32
,
*
PINT32
;
typedef
signed
__int64
INT64
,
*
PINT64
;
typedef
signed
__int64
DECLSPEC_ALIGN
(
8
)
INT64
,
*
PINT64
;
typedef
unsigned
char
UINT8
,
*
PUINT8
;
typedef
unsigned
short
UINT16
,
*
PUINT16
;
typedef
unsigned
int
UINT32
,
*
PUINT32
;
typedef
unsigned
__int64
UINT64
,
*
PUINT64
;
typedef
unsigned
__int64
DECLSPEC_ALIGN
(
8
)
UINT64
,
*
PUINT64
;
typedef
signed
int
LONG32
,
*
PLONG32
;
typedef
unsigned
int
ULONG32
,
*
PULONG32
;
typedef
unsigned
int
DWORD32
,
*
PDWORD32
;
typedef
signed
__int64
LONG64
,
*
PLONG64
;
typedef
unsigned
__int64
ULONG64
,
*
PULONG64
;
typedef
unsigned
__int64
DWORD64
,
*
PDWORD64
;
typedef
signed
__int64
DECLSPEC_ALIGN
(
8
)
LONG64
,
*
PLONG64
;
typedef
unsigned
__int64
DECLSPEC_ALIGN
(
8
)
ULONG64
,
*
PULONG64
;
typedef
unsigned
__int64
D
ECLSPEC_ALIGN
(
8
)
D
WORD64
,
*
PDWORD64
;
/* Win32 or Win64 dependent typedef/defines. */
...
...
include/strmif.h
View file @
47a88ba2
...
...
@@ -117,7 +117,7 @@ typedef enum _PinDirection {
#define MAX_FILTER_NAME 128
typedef
LONGLONG
REFERENCE_TIME
;
typedef
double
REFTIME
;
typedef
DOUBLE
REFTIME
;
typedef
DWORD_PTR
HSEMAPHORE
;
...
...
include/winnt.h
View file @
47a88ba2
...
...
@@ -319,13 +319,13 @@ typedef unsigned short WCHAR, *PWCHAR;
/* 'Extended/Wide' numerical types */
#ifndef _ULONGLONG_
#define _ULONGLONG_
typedef
signed
__int64
LONGLONG
,
*
PLONGLONG
;
typedef
unsigned
__int64
ULONGLONG
,
*
PULONGLONG
;
typedef
signed
__int64
DECLSPEC_ALIGN
(
8
)
LONGLONG
,
*
PLONGLONG
;
typedef
unsigned
__int64
DECLSPEC_ALIGN
(
8
)
ULONGLONG
,
*
PULONGLONG
;
#endif
#ifndef _DWORDLONG_
#define _DWORDLONG_
typedef
ULONGLONG
DWORDLONG
,
*
PDWORDLONG
;
typedef
ULONGLONG
DECLSPEC_ALIGN
(
8
)
DWORDLONG
,
*
PDWORDLONG
;
#endif
/* ANSI string types */
...
...
include/wtypes.h
View file @
47a88ba2
...
...
@@ -184,8 +184,12 @@ typedef struct tagMSG {
} MSG, *PMSG, *NPMSG, *LPMSG;
#endif /* winnt.h */
#if 0
typedef double DOUBLE;
#else
typedef
double
DECLSPEC_ALIGN
(
8
)
DOUBLE
;
#endif
#ifndef _PALETTEENTRY_DEFINED
#define _PALETTEENTRY_DEFINED
typedef
struct
tagPALETTEENTRY
{
...
...
@@ -609,8 +613,12 @@ typedef enum tagSTATFLAG {
STATFLAG_NOOPEN
=
2
}
STATFLAG
;
#if 0
typedef double DATE;
#else
typedef
double
DECLSPEC_ALIGN
(
8
)
DATE
;
#endif
#if 0
typedef struct tagCY {
LONGLONG int64;
...
...
include/wtypes.idl
View file @
47a88ba2
...
...
@@ -184,7 +184,11 @@ typedef struct tagMSG
cpp_quote("#endif /* winnt.h */")
cpp_quote("#if 0") /* for IDL only */
typedef double DOUBLE;
cpp_quote("#else")
cpp_quote("typedef double DECLSPEC_ALIGN(8) DOUBLE;")
cpp_quote("#endif")
cpp_quote("#ifndef _PALETTEENTRY_DEFINED")
cpp_quote("#define _PALETTEENTRY_DEFINED")
...
...
@@ -563,7 +567,11 @@ typedef enum tagSTATFLAG {
/********************
OLE
Automation
********************/
cpp_quote
(
"#if 0"
)
/*
for
IDL
only
*/
typedef
double
DATE
;
cpp_quote
(
"#else"
)
cpp_quote
(
"typedef double DECLSPEC_ALIGN(8) DATE;"
)
cpp_quote
(
"#endif"
)
cpp_quote
(
"#if 0"
)
/*
for
IDL
only
*/
typedef
struct
tagCY
{
...
...
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