Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
dec2640d
Commit
dec2640d
authored
Oct 25, 2005
by
reggie@big_geek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed define from EXTERN_C to EXTERNC so it doesn't conflict with
another macro defined in the Windows header files.
parent
a4cc61f2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
include/my_pthread.h
include/my_pthread.h
+6
-6
No files found.
include/my_pthread.h
View file @
dec2640d
...
...
@@ -25,10 +25,10 @@
#endif
#ifdef __cplusplus
#define EXTERN
_
C extern "C"
#define EXTERNC extern "C"
extern
"C"
{
#else
#define EXTERN
_
C
#define EXTERNC
#endif
/* __cplusplus */
#if defined(__WIN__) || defined(OS2)
...
...
@@ -80,10 +80,10 @@ struct timespec { /* For pthread_cond_timedwait() */
typedef
int
pthread_mutexattr_t
;
#define win_pthread_self my_thread_var->pthread_self
#ifdef OS2
#define pthread_handler_t EXTERN
_
C void * _Optlink
#define pthread_handler_t EXTERNC void * _Optlink
typedef
void
*
(
_Optlink
*
pthread_handler
)(
void
*
);
#else
#define pthread_handler_t EXTERN
_
C void * __cdecl
#define pthread_handler_t EXTERNC void * __cdecl
typedef
void
*
(
__cdecl
*
pthread_handler
)(
void
*
);
#endif
...
...
@@ -187,7 +187,7 @@ typedef int pthread_attr_t; /* Needed by Unixware 7.0.0 */
#define pthread_key_create(A,B) thr_keycreate((A),(B))
#define pthread_key_delete(A) thr_keydelete(A)
#define pthread_handler_t EXTERN
_
C void *
#define pthread_handler_t EXTERNC void *
#define pthread_key(T,V) pthread_key_t V
void
*
my_pthread_getspecific_imp
(
pthread_key_t
key
);
...
...
@@ -265,7 +265,7 @@ extern int my_pthread_getprio(pthread_t thread_id);
#define my_pthread_getspecific_ptr(T,V) my_pthread_getspecific(T,(V))
#define my_pthread_setspecific_ptr(T,V) pthread_setspecific(T,(void*) (V))
#define pthread_detach_this_thread()
#define pthread_handler_t EXTERN
_
C void *
#define pthread_handler_t EXTERNC void *
typedef
void
*
(
*
pthread_handler
)(
void
*
);
/* Test first for RTS or FSU threads */
...
...
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