diff include/begin_code.h @ 1573:2422ca15ba42

Added support for gcc4's -fvisibility=hidden option. Fixes Bugzilla #169.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 22 Mar 2006 01:28:36 +0000
parents d910939febfa
children 0fd72308659e
line wrap: on
line diff
--- a/include/begin_code.h	Tue Mar 21 16:04:44 2006 +0000
+++ b/include/begin_code.h	Wed Mar 22 01:28:36 2006 +0000
@@ -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__