Added support for gcc4's -fvisibility=hidden option.

Fixes Bugzilla #169.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401577
This commit is contained in:
Ryan C. Gordon 2006-03-22 01:28:36 +00:00
parent c21749e945
commit 0fc4f94726
2 changed files with 30 additions and 0 deletions

View file

@ -31,6 +31,10 @@
#endif
#define _begin_code_h
#ifdef __GNUC__
#define SDL_GCC_ATTR_VIS_DEFAULT __attribute__((visibility("default")))
#endif
/* Some compilers use a special export keyword */
#ifndef DECLSPEC
# ifdef __BEOS__