[vlc-commits] Move debug function to common.h
Jean-Baptiste Kempf
git at videolan.org
Wed Apr 23 20:05:13 CEST 2014
npapi-vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Apr 23 20:05:02 2014 +0200| [1941d9e9a69c494a61ccf9f7b5401a6009267bec] | committer: Jean-Baptiste Kempf
Move debug function to common.h
> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=1941d9e9a69c494a61ccf9f7b5401a6009267bec
---
npapi/common.h | 12 ++++++++++++
npapi/support/npunix.cpp | 11 -----------
2 files changed, 12 insertions(+), 11 deletions(-)
diff --git a/npapi/common.h b/npapi/common.h
index 7e49100..270f20f 100644
--- a/npapi/common.h
+++ b/npapi/common.h
@@ -79,4 +79,16 @@
#include "locking.h"
+/*
+ * Define PLUGIN_TRACE to have the wrapper functions print
+ * messages to stderr whenever they are called.
+ */
+
+#ifdef PLUGIN_TRACE
+# include <stdio.h>
+# define PLUGINDEBUGSTR(msg) fprintf(stderr, "%s\n", msg)
+#else
+# define PLUGINDEBUGSTR(msg)
+#endif
+
#endif /* __VLCPLUGIN_H__ */
diff --git a/npapi/support/npunix.cpp b/npapi/support/npunix.cpp
index b72c667..f1edeb0 100644
--- a/npapi/support/npunix.cpp
+++ b/npapi/support/npunix.cpp
@@ -65,17 +65,6 @@
#ifdef USE_GTK
# include <gtk/gtk.h>
#endif
-/*
- * Define PLUGIN_TRACE to have the wrapper functions print
- * messages to stderr whenever they are called.
- */
-
-#ifdef PLUGIN_TRACE
-#include <stdio.h>
-#define PLUGINDEBUGSTR(msg) fprintf(stderr, "%s\n", msg)
-#else
-#define PLUGINDEBUGSTR(msg)
-#endif
/***********************************************************************
*
More information about the vlc-commits
mailing list