Commit 69d7fdea authored by Pierre Ynard's avatar Pierre Ynard

"#if HAVE_FOO" -> "#ifdef HAVE_FOO"

This fixes some warnings.
parent 6a30fd81
......@@ -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 <config.h>
#endif
#define _XPG4_2 /* ancilliary data on Solaris */
......
......@@ -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" );
......
......@@ -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)
......
......@@ -37,7 +37,7 @@
#include <stdarg.h> /* va_list for BSD */
#ifdef __APPLE__
# include <xlocale.h>
#elif HAVE_LOCALE_H
#elif defined(HAVE_LOCALE_H)
# include <locale.h>
#endif
#include <errno.h> /* errno */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment