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
cfe45cc1
Commit
cfe45cc1
authored
Jan 14, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of the no longer needed DECL_GLOBAL_CONSTRUCTOR macro.
parent
ebe727e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
27 deletions
+8
-27
port.h
include/wine/port.h
+0
-26
kthread.c
loader/kthread.c
+8
-1
No files found.
include/wine/port.h
View file @
cfe45cc1
...
...
@@ -210,32 +210,6 @@ struct statvfs
#endif
/* __GNUC__ */
/* Constructor functions */
#ifdef __GNUC__
# define DECL_GLOBAL_CONSTRUCTOR(func) \
static void func(void) __attribute__((constructor)); \
static void func(void)
#elif defined(__i386__)
# define DECL_GLOBAL_CONSTRUCTOR(func) \
static void __dummy_init_##func(void) { \
asm(".section .init,\"ax\"\n\t" \
"call " #func "\n\t" \
".previous"); } \
static void func(void)
#elif defined(__sparc__)
# define DECL_GLOBAL_CONSTRUCTOR(func) \
static void __dummy_init_##func(void) { \
asm("\t.section \".init\",#alloc,#execinstr\n" \
"\tcall " #func "\n" \
"\tnop\n" \
"\t.section \".text\",#alloc,#execinstr\n" ); } \
static void func(void)
#else
# error You must define the DECL_GLOBAL_CONSTRUCTOR macro for your platform
#endif
/* Register functions */
#ifdef __i386__
...
...
loader/kthread.c
View file @
cfe45cc1
...
...
@@ -974,7 +974,14 @@ void __pthread_initialize(void)
if
(
libc_pthread_init
)
libc_multiple_threads
=
libc_pthread_init
(
&
libc_pthread_functions
);
}
}
DECL_GLOBAL_CONSTRUCTOR
(
init
)
{
__pthread_initialize
();
}
#ifdef __GNUC__
static
void
init
(
void
)
__attribute__
((
constructor
));
static
void
init
(
void
)
{
__pthread_initialize
();
}
#endif
static
struct
pthread_functions
libc_pthread_functions
=
{
...
...
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