On Tue, 2012-05-22 at 19:01 +0300, Lauri Kasanen wrote: > On Tue, 22 May 2012 07:40:09 -0600 > Eduardo Silva <[email protected]> wrote: > > > On Tue, May 22, 2012 at 2:19 AM, Lauri Kasanen <[email protected]> wrote: > > > Hi > > > > > > I was under the impression that unknown pragmas are ignored? > > > Unknown attributes on the other hand are not, IIRC, that's what's used in > > > mk_memory. > > > > > > I tested using GCC 3.3.6: > > > > > > test.c:1: warning: ignoring #pragma GCC visibility > > > > > > - Lauri > > > > as stated i would suggest a conditional macro like MK_GCC_PRAGMA_VISIBILITY > > I'm afraid that would require even newer compiler than the pragma (!). > See http://gcc.gnu.org/onlinedocs/cpp/Pragmas.html > > It's a C99 feature to be able to use a pragma in a macro. > > The other option would be to copy the #if version check around each pragma in > each file, a really ugly option... >
Or, instead of pragma use it as a function attribute, it seems we can implement visibility that way as well. http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html#Function-Attributes > > - Lauri > _______________________________________________ Monkey mailing list [email protected] http://lists.monkey-project.com/listinfo/monkey
