From: Jacek Caban jacek@codeweavers.com
--- include/wine/debug.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/include/wine/debug.h b/include/wine/debug.h index 86e008a1408..a8a07db5a84 100644 --- a/include/wine/debug.h +++ b/include/wine/debug.h @@ -108,12 +108,18 @@ struct __wine_debug_channel #define WINE_FIXME_(ch) WINE_FIXME #endif
+#ifdef WINE_UNIX_LIB +#define WINEDBGAPI DECLSPEC_EXPORT +#else +#define WINEDBGAPI +#endif + NTSYSAPI int WINAPI __wine_dbg_write( const char *str, unsigned int len ); -extern DECLSPEC_EXPORT unsigned char __cdecl __wine_dbg_get_channel_flags( struct __wine_debug_channel *channel ); -extern DECLSPEC_EXPORT const char * __cdecl __wine_dbg_strdup( const char *str ); -extern DECLSPEC_EXPORT int __cdecl __wine_dbg_output( const char *str ); -extern DECLSPEC_EXPORT int __cdecl __wine_dbg_header( enum __wine_debug_class cls, struct __wine_debug_channel *channel, - const char *function ); +extern WINEDBGAPI unsigned char __cdecl __wine_dbg_get_channel_flags( struct __wine_debug_channel *channel ); +extern WINEDBGAPI const char * __cdecl __wine_dbg_strdup( const char *str ); +extern WINEDBGAPI int __cdecl __wine_dbg_output( const char *str ); +extern WINEDBGAPI int __cdecl __wine_dbg_header( enum __wine_debug_class cls, struct __wine_debug_channel *channel, + const char *function );
/* * Exported definitions and macros