summaryrefslogtreecommitdiff
path: root/sem_wait.c
diff options
context:
space:
mode:
authorrpj <rpj>2011-03-09 06:51:54 +0000
committerrpj <rpj>2011-03-09 06:51:54 +0000
commiteb28d5aa00690b67cc27e4bd93d2c4c251987c85 (patch)
tree5db601315a671a52c816006733846008e7d3981c /sem_wait.c
parent2c51bb3337275e134e8c40db6dd4eea9407c8bca (diff)
*** empty log message ***
Diffstat (limited to 'sem_wait.c')
-rw-r--r--sem_wait.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sem_wait.c b/sem_wait.c
index d39d2b4..eeaae95 100644
--- a/sem_wait.c
+++ b/sem_wait.c
@@ -139,7 +139,7 @@ sem_wait (sem_t * sem)
if (v < 0)
{
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && _MSC_VER < 800
#pragma inline_depth(0)
#endif
/* Must wait */
@@ -147,7 +147,7 @@ sem_wait (sem_t * sem)
result = pthreadCancelableWait (s->sem);
/* Cleanup if we're canceled or on any other error */
pthread_cleanup_pop(result);
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && _MSC_VER < 800
#pragma inline_depth()
#endif
}