Skip to content

Commit

Permalink
Protect GCC visibility attribute in a public header.
Browse files Browse the repository at this point in the history
  • Loading branch information
foo86 committed May 18, 2015
1 parent 1b87dfb commit c4d213b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions libdcadec/dca_context.h
Expand Up @@ -46,12 +46,15 @@
/**@}*/

/**@{*/
#ifdef _WIN32
#if (defined _WIN32)
#define DCADEC_SHARED_EXPORT __declspec(dllexport)
#define DCADEC_SHARED_IMPORT __declspec(dllimport)
#else
#elif (__GNUC__ >= 4)
#define DCADEC_SHARED_EXPORT __attribute__((visibility("default")))
#define DCADEC_SHARED_IMPORT __attribute__((visibility("default")))
#else
#define DCADEC_SHARED_EXPORT
#define DCADEC_SHARED_IMPORT
#endif

#ifdef DCADEC_SHARED
Expand Down

0 comments on commit c4d213b

Please sign in to comment.