[vlc-devel] commit: mtime: ifdef vs if defined() (Derk-Jan Hartman )

git version control git at videolan.org
Mon Jun 1 13:36:41 CEST 2009


vlc | branch: master | Derk-Jan Hartman <hartman at videolan.org> | Mon Jun  1 13:34:33 2009 +0200| [7d391a6df895f0ac66ee76ffd99c53ef3675adbd] | committer: Derk-Jan Hartman 

mtime: ifdef vs if defined()

misc/mtime.c:59:18: warning: extra tokens at end of #ifdef directive
Grah, sorry about this, Apple parser doesn't see this as a problem, but other platforms do of course.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7d391a6df895f0ac66ee76ffd99c53ef3675adbd
---

 src/misc/mtime.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/misc/mtime.c b/src/misc/mtime.c
index 6cd1653..29cb076 100644
--- a/src/misc/mtime.c
+++ b/src/misc/mtime.c
@@ -56,7 +56,7 @@
 #   include <sys/time.h>
 #endif
 
-#ifdef __APPLE__ && && !defined(__powerpc__) && !defined(__ppc__) && !defined(__ppc64__)
+#if defines(__APPLE__) && && !defined(__powerpc__) && !defined(__ppc__) && !defined(__ppc64__)
 #define USE_APPLE_MACH 1
 #   include <mach/mach.h>
 #   include <mach/mach_time.h>




More information about the vlc-devel mailing list