From 69d7fdea2da6f773fd7993f78c2bea494eb2d819 Mon Sep 17 00:00:00 2001 From: Pierre Ynard Date: Wed, 5 May 2010 13:42:28 +0200 Subject: [PATCH] "#if HAVE_FOO" -> "#ifdef HAVE_FOO" This fixes some warnings. --- bin/rootwrap.c | 2 +- modules/access/http.c | 2 +- src/misc/cpu.c | 2 +- src/misc/messages.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/rootwrap.c b/bin/rootwrap.c index e95784c9dc..1527406e2d 100644 --- a/bin/rootwrap.c +++ b/bin/rootwrap.c @@ -18,7 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ -#if HAVE_CONFIG_H +#ifdef HAVE_CONFIG_H # include #endif #define _XPG4_2 /* ancilliary data on Solaris */ diff --git a/modules/access/http.c b/modules/access/http.c index a23a2f80eb..d0a53d7a84 100644 --- a/modules/access/http.c +++ b/modules/access/http.c @@ -449,7 +449,7 @@ static int OpenWithCookies( vlc_object_t *p_this, const char *psz_access, "in registry." ); } } -#elif HAVE_GETENV +#elif defined( HAVE_GETENV ) else { psz = getenv( "http_proxy" ); diff --git a/src/misc/cpu.c b/src/misc/cpu.c index 90228681f7..fc6e437ed6 100644 --- a/src/misc/cpu.c +++ b/src/misc/cpu.c @@ -335,7 +335,7 @@ unsigned vlc_GetCPUCount(void) system_mask >>= 1; } return count; -#elif HAVE_SCHED_GETAFFINITY +#elif defined(HAVE_SCHED_GETAFFINITY) cpu_set_t cpu; CPU_ZERO(&cpu); if (sched_getaffinity(0, sizeof(cpu), &cpu) < 0) diff --git a/src/misc/messages.c b/src/misc/messages.c index 4ef2b28119..906b489cb6 100644 --- a/src/misc/messages.c +++ b/src/misc/messages.c @@ -37,7 +37,7 @@ #include /* va_list for BSD */ #ifdef __APPLE__ # include -#elif HAVE_LOCALE_H +#elif defined(HAVE_LOCALE_H) # include #endif #include /* errno */ -- 2.39.2