From: <svn...@op...> - 2010-10-21 13:56:12
|
Author: ianmartin Date: Thu Oct 21 15:55:57 2010 New Revision: 6150 URL: http://www.opensync.org/changeset/6150 Log: Check if system specfic macros are defined rather than their value Fixes #1263 Thanks to Eckhart Wörner <ewo...@kd...> for patch Modified: trunk/opensync/opensync.h Modified: trunk/opensync/opensync.h ============================================================================== --- trunk/opensync/opensync.h Thu Oct 21 03:26:25 2010 (r6149) +++ trunk/opensync/opensync.h Thu Oct 21 15:55:57 2010 (r6150) @@ -45,11 +45,11 @@ #define __func__ __FUNCTION__ #define OSYNC_EXPORT __declspec(dllexport) -#elif __GNUC__ +#elif defined(__GNUC__) #include <unistd.h> #define OSYNC_EXPORT __attribute__ ((visibility("default"))) -#elif __sun +#elif defined(__sun) #include <unistd.h> #define OSYNC_EXPORT __global |