[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet-fuse] branch master updated: it seems to be better to use ifdef
From: |
gnunet |
Subject: |
[gnunet-fuse] branch master updated: it seems to be better to use ifdef instead of if for __linux__ |
Date: |
Wed, 20 Nov 2019 16:05:43 +0100 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnunet-fuse.
The following commit(s) were added to refs/heads/master by this push:
new fc4e1f5 it seems to be better to use ifdef instead of if for __linux__
fc4e1f5 is described below
commit fc4e1f5aa9c00d5ab3ba14affdfee17d95cb7a4a
Author: ng0 <address@hidden>
AuthorDate: Wed Nov 20 15:02:36 2019 +0000
it seems to be better to use ifdef instead of if for __linux__
---
src/fuse/mutex.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/fuse/mutex.c b/src/fuse/mutex.c
index 97b62a8..beb6f93 100644
--- a/src/fuse/mutex.c
+++ b/src/fuse/mutex.c
@@ -67,7 +67,7 @@ GNUNET_mutex_create (int isRecursive)
pthread_mutexattr_init (&attr);
if (isRecursive)
{
-#if __linux__
+#ifdef __linux__
GNUNET_assert (0 == pthread_mutexattr_setkind_np
(&attr, PTHREAD_MUTEX_RECURSIVE_NP));
#elif BSD || SOLARIS || OSX || WINDOWS
@@ -77,7 +77,7 @@ GNUNET_mutex_create (int isRecursive)
}
else
{
-#if __linux__
+#ifdef __linux__
GNUNET_assert (0 == pthread_mutexattr_setkind_np
(&attr, PTHREAD_MUTEX_ERRORCHECK_NP));
#else
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet-fuse] branch master updated: it seems to be better to use ifdef instead of if for __linux__,
gnunet <=