From 1e3f95e2fd62dd8d50dd94ee226bbfb40af6921a Mon Sep 17 00:00:00 2001 From: sletz Date: Thu, 10 Mar 2011 17:34:14 +0000 Subject: [PATCH] Compile on Windows again. git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4175 0c269be4-1314-0410-8aa9-9f06e86f4224 --- common/jack/weakmacros.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/common/jack/weakmacros.h b/common/jack/weakmacros.h index a65d1544..d5818b34 100644 --- a/common/jack/weakmacros.h +++ b/common/jack/weakmacros.h @@ -42,7 +42,12 @@ */ #define JACK_WEAK_EXPORT __attribute__((weak)) #else -/* Add other things here for non-gcc platforms */ +/* Add other things here for non-gcc platforms */ + +#ifdef WIN32 +#define JACK_WEAK_EXPORT +#endif + #endif #endif @@ -54,7 +59,12 @@ #ifdef __GNUC__ #define JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT __attribute__((__deprecated__)) #else -/* Add other things here for non-gcc platforms */ +/* Add other things here for non-gcc platforms */ + +#ifdef WIN32 +#define JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT +#endif + #endif /* __GNUC__ */ #endif