]> git.sesse.net Git - vlc/commitdiff
"#if HAVE_FOO" -> "#ifdef HAVE_FOO"
authorPierre Ynard <linkfanel@yahoo.fr>
Wed, 5 May 2010 11:42:28 +0000 (13:42 +0200)
committerPierre Ynard <linkfanel@yahoo.fr>
Wed, 5 May 2010 11:42:28 +0000 (13:42 +0200)
This fixes some warnings.

bin/rootwrap.c
modules/access/http.c
src/misc/cpu.c
src/misc/messages.c

index e95784c9dc3dc5604ae2e21497efe5bea894c903..1527406e2d2d8faa050f16653fe217db0bcd214f 100644 (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 */
index a23a2f80eb3e524790765e05af03975456d4d4ff..d0a53d7a84af85189bd0e10fa55745a2ef97a1db 100644 (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" );
index 90228681f7d2c93dd95221ba37b31d0c1c7b0598..fc6e437ed6dda7c176e54dff259a9a2cc3f5ba0d 100644 (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)
index 4ef2b281191ecbe8558631fe56f331135a5a3fdf..906b489cb6e66eeea7022ad140fd049dd4799b1c 100644 (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 */