From dcb85727c3649c254c985d840aa2efb36f727872 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sat, 3 Sep 2011 02:10:48 +0200 Subject: Completely remove glib dependency. --- src/debug.h | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'src/debug.h') diff --git a/src/debug.h b/src/debug.h index 2fd0960..cb1bf97 100644 --- a/src/debug.h +++ b/src/debug.h @@ -24,7 +24,14 @@ #define DEBUG_H #include -#include + +#ifndef LIBIMOBILEDEVICE_INTERNAL +#ifdef WIN32 +#define LIBIMOBILEDEVICE_INTERNAL +#else +#define LIBIMOBILEDEVICE_INTERNAL __attribute__((visibility("hidden"))) +#endif +#endif #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L && !defined(STRIP_DEBUG_CODE) #define debug_info(...) debug_info_real (__func__, __FILE__, __LINE__, __VA_ARGS__) @@ -37,14 +44,14 @@ #define debug_plist(a) #endif -G_GNUC_INTERNAL inline void debug_info_real(const char *func, +LIBIMOBILEDEVICE_INTERNAL inline void debug_info_real(const char *func, const char *file, int line, const char *format, ...); -G_GNUC_INTERNAL inline void debug_buffer(const char *data, const int length); -G_GNUC_INTERNAL inline void debug_buffer_to_file(const char *file, const char *data, const int length); -G_GNUC_INTERNAL inline void debug_plist_real(const char *func, +LIBIMOBILEDEVICE_INTERNAL inline void debug_buffer(const char *data, const int length); +LIBIMOBILEDEVICE_INTERNAL inline void debug_buffer_to_file(const char *file, const char *data, const int length); +LIBIMOBILEDEVICE_INTERNAL inline void debug_plist_real(const char *func, const char *file, int line, plist_t plist); -- cgit v1.1-32-gdbae