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
This commit is contained in:
fbarchard@google.com 2012-10-01 02:59:58 +00:00
parent dd46dac03a
commit 2605e02178
3 changed files with 9 additions and 8 deletions

View File

@ -1,6 +1,6 @@
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 381
Version: 382
License: BSD
License File: LICENSE

View File

@ -84,14 +84,15 @@ typedef signed char int8;
#define LIBYUV_API __declspec(dllimport)
#else
#define LIBYUV_API
#endif
#else
#if defined(__GNUC__) && __GNUC__ >= 4
#endif // LIBYUV_BUILDING_SHARED_LIBRARY
#else // WIN32
#if defined(__GNUC__) && __GNUC__ >= 4 && \
(defined(LIBYUV_BUILDING_SHARED_LIBRARY) || \
defined(LIBYUV_USING_SHARED_LIBRARY))
#define LIBYUV_API __attribute__ ((visibility ("default")))
#else
#define LIBYUV_API
#endif
#endif
#endif
#endif // __GNUC__
#endif // LIBYUV_API
#endif // INCLUDE_LIBYUV_BASIC_TYPES_H_ NOLINT

View File

@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
#define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 381
#define LIBYUV_VERSION 382
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT