Commit 2605e021 authored by fbarchard@google.com's avatar fbarchard@google.com

Use no attribute on gcc unless using shared lib or making shared lib

BUG=none
TEST=none

git-svn-id: http://libyuv.googlecode.com/svn/trunk@382 16f28f9a-4ce2-e073-06de-1de4eb20be90
parent dd46dac0
Name: libyuv Name: libyuv
URL: http://code.google.com/p/libyuv/ URL: http://code.google.com/p/libyuv/
Version: 381 Version: 382
License: BSD License: BSD
License File: LICENSE License File: LICENSE
......
...@@ -84,14 +84,15 @@ typedef signed char int8; ...@@ -84,14 +84,15 @@ typedef signed char int8;
#define LIBYUV_API __declspec(dllimport) #define LIBYUV_API __declspec(dllimport)
#else #else
#define LIBYUV_API #define LIBYUV_API
#endif #endif // LIBYUV_BUILDING_SHARED_LIBRARY
#else #else // WIN32
#if defined(__GNUC__) && __GNUC__ >= 4 #if defined(__GNUC__) && __GNUC__ >= 4 && \
(defined(LIBYUV_BUILDING_SHARED_LIBRARY) || \
defined(LIBYUV_USING_SHARED_LIBRARY))
#define LIBYUV_API __attribute__ ((visibility ("default"))) #define LIBYUV_API __attribute__ ((visibility ("default")))
#else #else
#define LIBYUV_API #define LIBYUV_API
#endif #endif // __GNUC__
#endif #endif // LIBYUV_API
#endif
#endif // INCLUDE_LIBYUV_BASIC_TYPES_H_ NOLINT #endif // INCLUDE_LIBYUV_BASIC_TYPES_H_ NOLINT
...@@ -11,6 +11,6 @@ ...@@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT #ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
#define INCLUDE_LIBYUV_VERSION_H_ #define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 381 #define LIBYUV_VERSION 382
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT #endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment