summaryrefslogtreecommitdiff
path: root/semaphore.h
diff options
context:
space:
mode:
authorrpj <rpj>2003-10-15 03:02:28 +0000
committerrpj <rpj>2003-10-15 03:02:28 +0000
commit41f042479e78dc0ce4daa8fd85ef59f61bb56325 (patch)
tree39b504ca5ff02a3198dd18f552cc2bbf05aaa279 /semaphore.h
parentaf1871fba4fc253b5a31e4a0eed667fe79f534d7 (diff)
Add Watcom compiler compatibility.
Diffstat (limited to 'semaphore.h')
-rw-r--r--semaphore.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/semaphore.h b/semaphore.h
index 73bc45d..f26417e 100644
--- a/semaphore.h
+++ b/semaphore.h
@@ -123,34 +123,34 @@ typedef unsigned int mode_t;
typedef struct sem_t_ * sem_t;
-PTW32_DLLPORT int sem_init (sem_t * sem,
+PTW32_DLLPORT int __cdecl sem_init (sem_t * sem,
int pshared,
unsigned int value);
-PTW32_DLLPORT int sem_destroy (sem_t * sem);
+PTW32_DLLPORT int __cdecl sem_destroy (sem_t * sem);
-PTW32_DLLPORT int sem_trywait (sem_t * sem);
+PTW32_DLLPORT int __cdecl sem_trywait (sem_t * sem);
-PTW32_DLLPORT int sem_wait (sem_t * sem);
+PTW32_DLLPORT int __cdecl sem_wait (sem_t * sem);
-PTW32_DLLPORT int sem_timedwait (sem_t * sem,
+PTW32_DLLPORT int __cdecl sem_timedwait (sem_t * sem,
const struct timespec * abstime);
-PTW32_DLLPORT int sem_post (sem_t * sem);
+PTW32_DLLPORT int __cdecl sem_post (sem_t * sem);
-PTW32_DLLPORT int sem_post_multiple (sem_t * sem,
+PTW32_DLLPORT int __cdecl sem_post_multiple (sem_t * sem,
int count);
-PTW32_DLLPORT int sem_open (const char * name,
+PTW32_DLLPORT int __cdecl sem_open (const char * name,
int oflag,
mode_t mode,
unsigned int value);
-PTW32_DLLPORT int sem_close (sem_t * sem);
+PTW32_DLLPORT int __cdecl sem_close (sem_t * sem);
-PTW32_DLLPORT int sem_unlink (const char * name);
+PTW32_DLLPORT int __cdecl sem_unlink (const char * name);
-PTW32_DLLPORT int sem_getvalue (sem_t * sem,
+PTW32_DLLPORT int __cdecl sem_getvalue (sem_t * sem,
int * sval);
#ifdef __cplusplus