aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-25 20:15:06 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-25 20:15:06 +0000
commit6304b9628cb7244e3cc78f740aeb6659562f1857 (patch)
treee28cab35a615350f7aab9b4a04e7e0d1ae7c4e12
parent885f2ff5a7a7d6a73432d26a6c0ae9147e6b4521 (diff)
downloadsrc-6304b9628cb7244e3cc78f740aeb6659562f1857.tar.gz
Fix opus_defines.h to define OPUS_EXPORT only when it's not defined.
Review URL: https://codereview.chromium.org/11260035 git-svn-id: svn://svn.chromium.org/chrome/trunk/deps/third_party/opus@164159 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--include/opus_defines.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/opus_defines.h b/include/opus_defines.h
index d86fbcc..ec154ba 100644
--- a/include/opus_defines.h
+++ b/include/opus_defines.h
@@ -63,6 +63,8 @@ extern "C" {
/** @cond OPUS_INTERNAL_DOC */
/**Export control for opus functions */
+#if !defined(OPUS_EXPORT)
+
#if defined(__GNUC__) && defined(OPUS_BUILD)
# define OPUS_EXPORT __attribute__ ((visibility ("default")))
#elif defined(WIN32) && !defined(__MINGW32__)
@@ -75,6 +77,8 @@ extern "C" {
# define OPUS_EXPORT
#endif
+#endif
+
# if !defined(OPUS_GNUC_PREREQ)
# if defined(__GNUC__)&&defined(__GNUC_MINOR__)
# define OPUS_GNUC_PREREQ(_maj,_min) \