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
d59ba4cc
Commit
d59ba4cc
authored
Aug 15, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a WINE_NO_UNICODE_MACROS define to allow Winelib apps to switch
off the Unicode macros too.
parent
ece9de5a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
12 deletions
+16
-12
objidl.idl
include/objidl.idl
+3
-3
ocidl.idl
include/ocidl.idl
+1
-1
oleidl.idl
include/oleidl.idl
+2
-2
windef.h
include/windef.h
+10
-6
No files found.
include/objidl.idl
View file @
d59ba4cc
...
...
@@ -435,10 +435,10 @@ interface IRunnableObject : IUnknown
}
/*
GetObject
is
defined
in
wingdi
.
h
as
WINELIB_NAME_AW
(
GetObject
),
*
which
resolves
to
a
compilation
failure
if
__WINESRC__
is
defined
,
*
which
resolves
to
a
compilation
failure
if
WINE_NO_UNICODE_MACROS
is
defined
,
*
but
GetObject
is
used
as
a
valid
method
name
below
,
so
we
have
*
to
undefine
it
i
f
__WINESRC__
is
defined
*/
cpp_quote
(
"#ifdef
__WINESRC__
"
)
*
to
undefine
it
i
n
that
case
*/
cpp_quote
(
"#ifdef
WINE_NO_UNICODE_MACROS
"
)
cpp_quote
(
"#undef GetObject"
)
cpp_quote
(
"#endif"
)
...
...
include/ocidl.idl
View file @
d59ba4cc
...
...
@@ -514,7 +514,7 @@ interface IProvideClassInfo : IUnknown
{
typedef
IProvideClassInfo
*
LPPROVIDECLASSINFO
;
cpp_quote
(
"#ifdef
__WINESRC__
"
)
cpp_quote
(
"#ifdef
WINE_NO_UNICODE_MACROS
"
)
cpp_quote
(
"#undef GetClassInfo"
)
cpp_quote
(
"#endif"
)
...
...
include/oleidl.idl
View file @
d59ba4cc
...
...
@@ -97,7 +97,7 @@ interface IOleInPlaceObject : IOleWindow
/*
avoid
conflict
with
Wine
Unicode
macros
*/
cpp_quote
(
"#ifdef
__WINESRC__
"
)
cpp_quote
(
"#ifdef
WINE_NO_UNICODE_MACROS
"
)
cpp_quote
(
"#undef TranslateAccelerator"
)
cpp_quote
(
"#endif"
)
...
...
@@ -335,7 +335,7 @@ interface IOleItemContainer : IOleContainer
OLECONTF_ONLYIFRUNNING
=
16
}
OLECONTF
;
cpp_quote
(
"#ifdef
__WINESRC__
"
)
cpp_quote
(
"#ifdef
WINE_NO_UNICODE_MACROS
"
)
cpp_quote
(
"#undef GetObject"
)
cpp_quote
(
"#endif"
)
HRESULT
GetObject
(
...
...
include/windef.h
View file @
d59ba4cc
...
...
@@ -184,22 +184,26 @@ typedef char *PSZ;
/* Note that Winelib is purely Win32. */
#ifdef __WINESRC__
#define WINE_NO_UNICODE_MACROS
#endif
#ifdef WINE_NO_UNICODE_MACROS
# define WINELIB_NAME_AW(func) \
func##_must_be_suffixed_with_W_or_A_in_this_context \
func##_must_be_suffixed_with_W_or_A_in_this_context
#else
/*
__WINESRC__
*/
#else
/*
WINE_NO_UNICODE_MACROS
*/
# ifdef UNICODE
# define WINELIB_NAME_AW(func) func##W
# else
# define WINELIB_NAME_AW(func) func##A
# endif
/* UNICODE */
#endif
/*
__WINESRC__
*/
# endif
#endif
/*
WINE_NO_UNICODE_MACROS
*/
#ifdef
__WINESRC__
#ifdef
WINE_NO_UNICODE_MACROS
# define DECL_WINELIB_TYPE_AW(type)
/* nothing */
#else
/* __WINESRC__ */
#else
# define DECL_WINELIB_TYPE_AW(type) typedef WINELIB_NAME_AW(type) type;
#endif
/* __WINESRC__ */
#endif
#include <winnt.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