[vlc-devel] commit: mtime: ifdef vs if defined() (Derk-Jan Hartman )
git version control
git at videolan.org
Mon Jun 1 13:43:04 CEST 2009
vlc | branch: 1.0-bugfix | Derk-Jan Hartman <hartman at videolan.org> | Mon Jun 1 13:34:33 2009 +0200| [7717830478e02118bd79094700d44e5d6f6b0d27] | 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.
(cherry picked from commit 7d391a6df895f0ac66ee76ffd99c53ef3675adbd)
Signed-off-by: Derk-Jan Hartman <hartman at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7717830478e02118bd79094700d44e5d6f6b0d27
---
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