From: Pierre Ynard Date: Wed, 5 May 2010 11:42:28 +0000 (+0200) Subject: "#if HAVE_FOO" -> "#ifdef HAVE_FOO" X-Git-Tag: 1.2.0-pre1~6753 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=69d7fdea2da6f773fd7993f78c2bea494eb2d819;hp=6a30fd81c3248949fb5f8554ba22e52cbc4489c8;p=vlc "#if HAVE_FOO" -> "#ifdef HAVE_FOO" This fixes some warnings. --- 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 */