summaryrefslogtreecommitdiff
path: root/PACE/pace/semaphore.h
diff options
context:
space:
mode:
Diffstat (limited to 'PACE/pace/semaphore.h')
-rw-r--r--PACE/pace/semaphore.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/PACE/pace/semaphore.h b/PACE/pace/semaphore.h
index d69c7635b34..fd4bc1fcebe 100644
--- a/PACE/pace/semaphore.h
+++ b/PACE/pace/semaphore.h
@@ -72,9 +72,12 @@ extern "C" {
IEEE Std 1003.1, 1996 Edition), Section 11.2.3.
*/
#if (PACE_HAS_POSIX_NONUOF_FUNCS)
- # define pace_sem_open sem_open
+# if defined (PACE_HAS_CPLUSPLUS)
+# define pace_sem_open ::sem_open
+# else
+# define pace_sem_open sem_open
+# endif /* PACE_HAS_CPLUSPLUS */
#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */
- /* int fprintf (FILE *stream, const char *format, (*//* args *//*) ... ); */
/**
PACE's implementation of the POSIX function sem_post.