mirror of
https://github.com/videolan/vlc.git
synced 2024-12-11 10:44:38 +08:00
"#if HAVE_FOO" -> "#ifdef HAVE_FOO"
This fixes some warnings.
This commit is contained in:
parent
6a30fd81c3
commit
69d7fdea2d
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user