diff options
author | Darin Broady <dbroady1@yahoo.com> | 2010-01-22 14:12:02 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2010-01-22 14:12:02 (GMT) |
commit | 1ad847de17cb0e5f53bd5c62933ca887d9cdf7ef (patch) | |
tree | 22dd11174e27a61bc956d7aecb85e8ba4fbd4eff /src/corelib/global | |
parent | a259511a2b76ddee2e1199802c66295b964c394e (diff) | |
download | Qt-1ad847de17cb0e5f53bd5c62933ca887d9cdf7ef.zip Qt-1ad847de17cb0e5f53bd5c62933ca887d9cdf7ef.tar.gz Qt-1ad847de17cb0e5f53bd5c62933ca887d9cdf7ef.tar.bz2 |
Add the ability for the SunStudio 8+ compilers to do
ELF symbol visibility.
Merge-request: 433
Reviewed-by: Thiago Macieira <thiago.macieira@nokia.com>
Diffstat (limited to 'src/corelib/global')
-rw-r--r-- | src/corelib/global/qglobal.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h index c4cf3f0..b237659 100644 --- a/src/corelib/global/qglobal.h +++ b/src/corelib/global/qglobal.h @@ -672,8 +672,9 @@ namespace QT_NAMESPACE {} # define Q_ALIGNOF(type) __alignof__(type) # define Q_TYPEOF(expr) __typeof__(expr) # define Q_DECL_ALIGN(n) __attribute__((__aligned__(n))) -// using CC 5.9: Warning: attribute visibility is unsupported and will be skipped.. -//# define Q_DECL_EXPORT __attribute__((__visibility__("default"))) +# endif +# if __SUNPRO_CC >= 0x550 +# define Q_DECL_EXPORT __global # endif # if __SUNPRO_CC < 0x5a0 # define Q_NO_TEMPLATE_FRIENDS |