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... - Lauri _______________________________________________ Monkey mailing list [email protected] http://lists.monkey-project.com/listinfo/monkey
