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
a2ba7dcf
Commit
a2ba7dcf
authored
May 30, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Use WINE_NO_UNICODE_MACROS instead of __WINESRC__ where appropriate.
parent
471f80d6
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
14 additions
and
16 deletions
+14
-16
dbt.h
include/dbt.h
+3
-3
dxdiag.h
include/dxdiag.h
+1
-1
mapidefs.h
include/mapidefs.h
+1
-1
msiquery.h
include/msiquery.h
+1
-1
setupapi.h
include/setupapi.h
+3
-3
shlwapi.h
include/shlwapi.h
+1
-1
winbase.h
include/winbase.h
+1
-2
winnt.h
include/winnt.h
+2
-2
winuser.h
include/winuser.h
+1
-2
No files found.
include/dbt.h
View file @
a2ba7dcf
...
@@ -20,11 +20,11 @@
...
@@ -20,11 +20,11 @@
#define __WINE_DBT_H
#define __WINE_DBT_H
/* dbt.h doesn't use the normal convention, it adds an underscore before A/W */
/* dbt.h doesn't use the normal convention, it adds an underscore before A/W */
#ifdef
__WINESRC__
#ifdef
WINE_NO_UNICODE_MACROS
# define DECL_WINELIB_DBT_TYPE_AW(type)
/* nothing */
# define DECL_WINELIB_DBT_TYPE_AW(type)
/* nothing */
#else
/* __WINESRC__ */
#else
# define DECL_WINELIB_DBT_TYPE_AW(type) typedef WINELIB_NAME_AW(type##_) type;
# define DECL_WINELIB_DBT_TYPE_AW(type) typedef WINELIB_NAME_AW(type##_) type;
#endif
/* __WINESRC__ */
#endif
#define DBT_NO_DISK_SPACE 0x0047
#define DBT_NO_DISK_SPACE 0x0047
#define DBT_LOW_DISK_SPACE 0x0048
#define DBT_LOW_DISK_SPACE 0x0048
...
...
include/dxdiag.h
View file @
a2ba7dcf
...
@@ -67,7 +67,7 @@ typedef struct IDxDiagContainer *LPDXDIAGCONTAINER, *PDXDIAGCONTAINER;
...
@@ -67,7 +67,7 @@ typedef struct IDxDiagContainer *LPDXDIAGCONTAINER, *PDXDIAGCONTAINER;
/*****************************************************************************
/*****************************************************************************
* IDxDiagContainer interface
* IDxDiagContainer interface
*/
*/
#ifdef
__WINESRC__
#ifdef
WINE_NO_UNICODE_MACROS
#undef GetProp
#undef GetProp
#endif
#endif
...
...
include/mapidefs.h
View file @
a2ba7dcf
...
@@ -218,7 +218,7 @@ typedef struct _MAPIUID
...
@@ -218,7 +218,7 @@ typedef struct _MAPIUID
#define MVI_FLAG (MV_FLAG|MV_INSTANCE)
#define MVI_FLAG (MV_FLAG|MV_INSTANCE)
#define MVI_PROP(t) ((t)|MVI_FLAG)
#define MVI_PROP(t) ((t)|MVI_FLAG)
#ifndef
__WINESRC__
#ifndef
WINE_NO_UNICODE_MACROS
# ifdef UNICODE
# ifdef UNICODE
# define PT_TSTRING PT_UNICODE
# define PT_TSTRING PT_UNICODE
# define PT_MV_TSTRING (MV_FLAG|PT_UNICODE)
# define PT_MV_TSTRING (MV_FLAG|PT_UNICODE)
...
...
include/msiquery.h
View file @
a2ba7dcf
...
@@ -61,7 +61,7 @@ typedef enum tagMSIMODIFY
...
@@ -61,7 +61,7 @@ typedef enum tagMSIMODIFY
MSIMODIFY_VALIDATE_DELETE
=
11
MSIMODIFY_VALIDATE_DELETE
=
11
}
MSIMODIFY
;
}
MSIMODIFY
;
#ifndef
__WINESRC__
#ifndef
WINE_NO_UNICODE_MACROS
#define MSIDBOPEN_READONLY (LPCTSTR)0
#define MSIDBOPEN_READONLY (LPCTSTR)0
#define MSIDBOPEN_TRANSACT (LPCTSTR)1
#define MSIDBOPEN_TRANSACT (LPCTSTR)1
#define MSIDBOPEN_DIRECT (LPCTSTR)2
#define MSIDBOPEN_DIRECT (LPCTSTR)2
...
...
include/setupapi.h
View file @
a2ba7dcf
...
@@ -27,11 +27,11 @@ extern "C" {
...
@@ -27,11 +27,11 @@ extern "C" {
#endif
#endif
/* setupapi doesn't use the normal convention, it adds an underscore before A/W */
/* setupapi doesn't use the normal convention, it adds an underscore before A/W */
#ifdef
__WINESRC__
#ifdef
WINE_NO_UNICODE_MACROS
# define DECL_WINELIB_SETUPAPI_TYPE_AW(type)
/* nothing */
# define DECL_WINELIB_SETUPAPI_TYPE_AW(type)
/* nothing */
#else
/* __WINESRC__ */
#else
# define DECL_WINELIB_SETUPAPI_TYPE_AW(type) typedef WINELIB_NAME_AW(type##_) type;
# define DECL_WINELIB_SETUPAPI_TYPE_AW(type) typedef WINELIB_NAME_AW(type##_) type;
#endif
/* __WINESRC__ */
#endif
#ifdef __cplusplus
#ifdef __cplusplus
extern
"C"
{
extern
"C"
{
...
...
include/shlwapi.h
View file @
a2ba7dcf
...
@@ -782,7 +782,7 @@ LPSTR WINAPI StrFormatByteSizeA (DWORD,LPSTR,UINT);
...
@@ -782,7 +782,7 @@ LPSTR WINAPI StrFormatByteSizeA (DWORD,LPSTR,UINT);
/* A/W Pairing is broken for this function */
/* A/W Pairing is broken for this function */
LPSTR
WINAPI
StrFormatByteSize64A
(
LONGLONG
,
LPSTR
,
UINT
);
LPSTR
WINAPI
StrFormatByteSize64A
(
LONGLONG
,
LPSTR
,
UINT
);
LPWSTR
WINAPI
StrFormatByteSizeW
(
LONGLONG
,
LPWSTR
,
UINT
);
LPWSTR
WINAPI
StrFormatByteSizeW
(
LONGLONG
,
LPWSTR
,
UINT
);
#ifndef
__WINESRC__
#ifndef
WINE_NO_UNICODE_MACROS
#ifdef UNICODE
#ifdef UNICODE
#define StrFormatByteSize StrFormatByteSizeW
#define StrFormatByteSize StrFormatByteSizeW
#else
#else
...
...
include/winbase.h
View file @
a2ba7dcf
...
@@ -467,8 +467,7 @@ typedef struct _PROCESS_HEAP_ENTRY
...
@@ -467,8 +467,7 @@ typedef struct _PROCESS_HEAP_ENTRY
#define INVALID_ATOM ((ATOM)0)
#define INVALID_ATOM ((ATOM)0)
#define MAXINTATOM 0xc000
#define MAXINTATOM 0xc000
#ifdef __WINESRC__
#ifdef WINE_NO_UNICODE_MACROS
/* force using a cast */
/* force using a cast when inside Wine */
#define MAKEINTATOM(atom) ((ULONG_PTR)((WORD)(atom)))
#define MAKEINTATOM(atom) ((ULONG_PTR)((WORD)(atom)))
#else
#else
#define MAKEINTATOM(atom) ((LPTSTR)((ULONG_PTR)((WORD)(atom))))
#define MAKEINTATOM(atom) ((LPTSTR)((ULONG_PTR)((WORD)(atom))))
...
...
include/winnt.h
View file @
a2ba7dcf
...
@@ -385,7 +385,7 @@ typedef const WCHAR *PCWSTR, *LPCWSTR;
...
@@ -385,7 +385,7 @@ typedef const WCHAR *PCWSTR, *LPCWSTR;
* the emulator. The reason is they depend on the UNICODE
* the emulator. The reason is they depend on the UNICODE
* macro which only exists in the user's code.
* macro which only exists in the user's code.
*/
*/
#ifndef
__WINESRC__
#ifndef
WINE_NO_UNICODE_MACROS
# ifdef UNICODE
# ifdef UNICODE
# ifndef _TCHAR_DEFINED
# ifndef _TCHAR_DEFINED
typedef
WCHAR
TCHAR
,
*
PTCHAR
;
typedef
WCHAR
TCHAR
,
*
PTCHAR
;
...
@@ -404,7 +404,7 @@ typedef LPCSTR PCTSTR, LPCTSTR;
...
@@ -404,7 +404,7 @@ typedef LPCSTR PCTSTR, LPCTSTR;
# define __TEXT(string) string
# define __TEXT(string) string
# endif
/* UNICODE */
# endif
/* UNICODE */
# define TEXT(quote) __TEXT(quote)
# define TEXT(quote) __TEXT(quote)
#endif
/*
__WINESRC__
*/
#endif
/*
WINE_NO_UNICODE_MACROS
*/
/* Misc common WIN32 types */
/* Misc common WIN32 types */
typedef
char
CCHAR
;
typedef
char
CCHAR
;
...
...
include/winuser.h
View file @
a2ba7dcf
...
@@ -652,8 +652,7 @@ typedef struct tagWINDOWPLACEMENT
...
@@ -652,8 +652,7 @@ typedef struct tagWINDOWPLACEMENT
#define MAKEINTRESOURCEA(i) (LPSTR)((ULONG_PTR)((WORD)(i)))
#define MAKEINTRESOURCEA(i) (LPSTR)((ULONG_PTR)((WORD)(i)))
#define MAKEINTRESOURCEW(i) (LPWSTR)((ULONG_PTR)((WORD)(i)))
#define MAKEINTRESOURCEW(i) (LPWSTR)((ULONG_PTR)((WORD)(i)))
#ifdef __WINESRC__
#ifdef WINE_NO_UNICODE_MACROS
/* force using a cast */
/* force using a cast when inside Wine */
#define MAKEINTRESOURCE(i) ((ULONG_PTR)((WORD)(i)))
#define MAKEINTRESOURCE(i) ((ULONG_PTR)((WORD)(i)))
#else
#else
#define MAKEINTRESOURCE WINELIB_NAME_AW(MAKEINTRESOURCE)
#define MAKEINTRESOURCE WINELIB_NAME_AW(MAKEINTRESOURCE)
...
...
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