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

Fixes Bugzilla #169.
This commit is contained in:
Ryan C. Gordon
2006-03-22 01:28:36 +00:00
parent 310df05e46
commit b08954dad5
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__