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
6ba2226f
Commit
6ba2226f
authored
Dec 13, 2003
by
Ge van Geldorp
Committed by
Alexandre Julliard
Dec 13, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When building a PE DLL (MinGW), variables exported from a DLL must be
explicitly marked as dllimport when using them.
parent
65ff8146
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
6 deletions
+16
-6
unicode.h
include/wine/unicode.h
+7
-3
winnt.h
include/winnt.h
+8
-2
Makefile.in
libs/unicode/Makefile.in
+1
-1
No files found.
include/wine/unicode.h
View file @
6ba2226f
...
...
@@ -27,6 +27,10 @@
#include <winbase.h>
#include <winnls.h>
#ifndef WINE_UNICODE_API
#define WINE_UNICODE_API DECLSPEC_IMPORT
#endif
/* code page info common to SBCS and DBCS */
struct
cp_info
{
...
...
@@ -95,13 +99,13 @@ static inline int is_dbcs_leadbyte( const union cptable *table, unsigned char ch
static
inline
WCHAR
tolowerW
(
WCHAR
ch
)
{
extern
const
WCHAR
wine_casemap_lower
[];
extern
WINE_UNICODE_API
const
WCHAR
wine_casemap_lower
[];
return
ch
+
wine_casemap_lower
[
wine_casemap_lower
[
ch
>>
8
]
+
(
ch
&
0xff
)];
}
static
inline
WCHAR
toupperW
(
WCHAR
ch
)
{
extern
const
WCHAR
wine_casemap_upper
[];
extern
WINE_UNICODE_API
const
WCHAR
wine_casemap_upper
[];
return
ch
+
wine_casemap_upper
[
wine_casemap_upper
[
ch
>>
8
]
+
(
ch
&
0xff
)];
}
...
...
@@ -109,7 +113,7 @@ static inline WCHAR toupperW( WCHAR ch )
/* and the C2_* type in the high 4 bits */
static
inline
unsigned
short
get_char_typeW
(
WCHAR
ch
)
{
extern
const
unsigned
short
wine_wctype_table
[];
extern
WINE_UNICODE_API
const
unsigned
short
wine_wctype_table
[];
return
wine_wctype_table
[
wine_wctype_table
[
ch
>>
8
]
+
(
ch
&
0xff
)];
}
...
...
include/winnt.h
View file @
6ba2226f
...
...
@@ -41,8 +41,14 @@
#define WINE_UNUSED
/* nothing */
#endif
#if defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_IA64) || defined(_M_AMD64)) && !defined(MIDL_PASS)
# define DECLSPEC_IMPORT __declspec(dllimport)
#if (defined(_M_IX86) || defined(_M_IA64) || defined(_M_AMD64) || defined(__MINGW32__)) && !defined(MIDL_PASS)
# if defined(_MSC_VER)
# define DECLSPEC_IMPORT __declspec(dllimport)
# elif defined(__MINGW32__)
# define DECLSPEC_IMPORT __attribute__((dllimport))
# else
# define DECLSPEC_IMPORT
# endif
#else
# define DECLSPEC_IMPORT
#endif
...
...
libs/unicode/Makefile.in
View file @
6ba2226f
...
...
@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH
=
@srcdir@
LIBRARY
=
wine_unicode
SOVERSION
=
1
EXTRADEFS
=
-D__WINESRC__
-DNO_LIBWINE_PORT
EXTRADEFS
=
-D__WINESRC__
-DNO_LIBWINE_PORT
-DWINE_UNICODE_API
=
""
CODEPAGES
=
\
037
\
...
...
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