From 8efaf8af81ec1daf7a9881373d08a01fc2dc72e4 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 25 Jun 2008 12:27:12 -0300 Subject: added a comment about warnings for __attribute__(visibility) in some elf targets --- luaconf.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'luaconf.h') diff --git a/luaconf.h b/luaconf.h index bc707b28..7f8f52e4 100644 --- a/luaconf.h +++ b/luaconf.h @@ -1,5 +1,5 @@ /* -** $Id: luaconf.h,v 1.96 2008/02/11 19:17:19 roberto Exp roberto $ +** $Id: luaconf.h,v 1.97 2008/04/07 18:58:42 roberto Exp roberto $ ** Configuration file for Lua ** See Copyright Notice in lua.h */ @@ -182,7 +182,11 @@ @* be exported to outside modules. ** CHANGE them if you need to mark them in some special way. Elf/gcc ** (versions 3.2 and later) mark them as "hidden" to optimize access -** when Lua is compiled as a shared library. +** when Lua is compiled as a shared library. Not all elf targets support +** this attribute. Unfortunately, gcc does not offer a way to check +** whether the target offers that support, and those without support +** give a warning about it. To avoid these warnings, change to the +** default definition. */ #if defined(luaall_c) #define LUAI_FUNC static -- cgit v1.2.3-55-g6feb