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

This fixes some warnings.
This commit is contained in:
Pierre Ynard 2010-05-05 13:42:28 +02:00
parent 6a30fd81c3
commit 69d7fdea2d
4 changed files with 4 additions and 4 deletions

View File

@ -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 */

View File

@ -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" );

View File

@ -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)

View File

@ -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 */