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
0c9abbee
Commit
0c9abbee
authored
Mar 24, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid reference to wine_get_cs function from libwine.
parent
98bcdf9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
spec16.c
tools/winebuild/spec16.c
+20
-2
No files found.
tools/winebuild/spec16.c
View file @
0c9abbee
...
...
@@ -29,7 +29,6 @@
#include <ctype.h>
#include "wine/exception.h"
#include "wine/library.h"
#include "builtin16.h"
#include "module.h"
#include "stackframe.h"
...
...
@@ -38,6 +37,25 @@
/*******************************************************************
* get_cs
*/
#ifdef __i386__
static
inline
unsigned
short
get_cs
(
void
)
{
unsigned
short
res
;
#ifdef __GNUC__
__asm__
(
"movw %%cs,%w0"
:
"=r"
(
res
));
#elif defined(_MSC_VER)
__asm
{
mov
res
,
cs
}
#else
res
=
0
;
#endif
return
res
;
}
#endif
/* __i386__ */
/*******************************************************************
* output_file_header
*
* Output a file header with the common declarations we need.
...
...
@@ -629,7 +647,7 @@ void BuildSpec16File( FILE *outfile )
unsigned
char
*
data
;
char
constructor
[
100
],
destructor
[
100
];
#ifdef __i386__
unsigned
short
code_selector
=
wine_
get_cs
();
unsigned
short
code_selector
=
get_cs
();
#endif
/* File header */
...
...
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