From 7beea63d725e4db27d693f8a27d9a2779f37516b Mon Sep 17 00:00:00 2001 From: bje Date: Sat, 3 Oct 1998 04:36:12 +0000 Subject: Use #if, not #ifdef. --- attr.c | 2 +- pthread.h | 6 +++--- signal.c | 4 +--- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/attr.c b/attr.c index 994a2f2..1f3f996 100644 --- a/attr.c +++ b/attr.c @@ -102,7 +102,7 @@ pthread_attr_init(pthread_attr_t *attr) #endif attr->detachedstate = PTHREAD_CREATE_JOINABLE; -#ifdef HAVE_SIGSET_T +#if HAVE_SIGSET_T memset(&(attr->sigmask), 0, sizeof(sigset_t)); #endif /* HAVE_SIGSET_T */ diff --git a/pthread.h b/pthread.h index d3fdb8a..5c31af2 100644 --- a/pthread.h +++ b/pthread.h @@ -28,14 +28,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #undef _POSIX_THREAD_ATTR_STACKADDR #endif -#ifdef HAVE_CONFIG_H +#if HAVE_CONFIG_H #include "config.h" #endif /* HAVE_CONFIG_H */ #include #include -#ifdef HAVE_SIGNAL_H +#if HAVE_SIGNAL_H #include #endif /* HAVE_SIGNAL_H */ @@ -90,7 +90,7 @@ typedef struct { int detachedstate; /* PTHREAD_CREATE_DETACHED PTHREAD_CREATE_JOINABLE */ -#ifdef HAVE_SIGSET_T +#if HAVE_SIGSET_T sigset_t sigmask; #endif /* HAVE_SIGSET_T */ diff --git a/signal.c b/signal.c index 30189d9..ad8a614 100644 --- a/signal.c +++ b/signal.c @@ -10,8 +10,7 @@ #include "pthread.h" #include "implement.h" -#ifdef HAVE_SIGSET_T - +#if HAVE_SIGSET_T int pthread_sigmask(int how, const sigset_t *set, sigset_t *oset) { @@ -74,5 +73,4 @@ pthread_sigmask(int how, const sigset_t *set, sigset_t *oset) return 0; } - #endif /* HAVE_SIGSET_T */ -- cgit v1.2.3