diff options
author | Romain Guy <romainguy@google.com> | 2011-10-12 13:45:59 -0700 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2011-10-12 13:45:59 -0700 |
commit | 6bcd4d3e7310240d9424f13444542572e9ae3632 (patch) | |
tree | 6352388a59a318dcf49188ede6de1c0b402d7811 | |
parent | d707fb3fb6448be04d6e14f7e478df7e298ebf35 (diff) | |
download | system_core-6bcd4d3e7310240d9424f13444542572e9ae3632.zip system_core-6bcd4d3e7310240d9424f13444542572e9ae3632.tar.gz system_core-6bcd4d3e7310240d9424f13444542572e9ae3632.tar.bz2 |
Add ANDROID_API macro to export symbols
Change-Id: I55294713c8dd1ac32d6013d084f1bb502fc3572f
-rw-r--r-- | include/cutils/compiler.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/cutils/compiler.h b/include/cutils/compiler.h index 09112d5..70f884a 100644 --- a/include/cutils/compiler.h +++ b/include/cutils/compiler.h @@ -29,4 +29,16 @@ # define CC_UNLIKELY( exp ) (__builtin_expect( !!(exp), 0 )) #endif +/** + * exports marked symbols + * + * if used on a C++ class declaration, this macro must be inserted + * after the "class" keyword. For instance: + * + * template <typename TYPE> + * class ANDROID_API Singleton { } + */ + +#define ANDROID_API __attribute__((visibility("default"))) + #endif // ANDROID_CUTILS_COMPILER_H |