]> git.sesse.net Git - vlc/commitdiff
var: undef Windef.h CALLBACK as we use it here.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 12 Aug 2008 23:04:17 +0000 (01:04 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 12 Aug 2008 23:04:17 +0000 (01:04 +0200)
No we won't change the name. Microsoft won't make us change our mind ;)

src/input/var.c

index 1dbba725ebf7cd568a027a6ec6c2bf198f8bdca3..c7a7025e939e2ec10a694f10df66853a4c0118d4 100644 (file)
@@ -69,6 +69,9 @@ typedef struct
 static void InputAddCallbacks( input_thread_t *, const vlc_input_callback_t * );
 static void InputDelCallbacks( input_thread_t *, const vlc_input_callback_t * );
 
+#ifdef CALLBACK /* For windows */
+# undef CALLBACK /* We don't care of this one here */
+#endif
 /* List all callbacks added by input */
 #define CALLBACK(name,cb) { name, cb }
 static const vlc_input_callback_t p_input_callbacks[] =