[openfirmware] [commit] r2342 - forth/wrapper/zip

repository service svn at openfirmware.info
Tue Jul 12 00:02:40 CEST 2011


Author: tooch
Date: Tue Jul 12 00:02:40 2011
New Revision: 2342
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2342

Log:
Guard the attribute specification with #ifndef __llvm__ cos it slays LLVM-based
compilers. Should be a no-op for everyone else in the universe. (Borland?)

Modified:
   forth/wrapper/zip/inflate.c

Modified: forth/wrapper/zip/inflate.c
==============================================================================
--- forth/wrapper/zip/inflate.c	Fri Jul  8 11:39:28 2011	(r2341)
+++ forth/wrapper/zip/inflate.c	Tue Jul 12 00:02:40 2011	(r2342)
@@ -165,7 +165,11 @@
  * Return size of clear.
  */
 int
-inflate(struct workspace *wsptr, int nohdr, u_char* clear, u_char *compr) __attribute__((section ("text_inflate")));
+inflate(struct workspace *wsptr, int nohdr, u_char* clear, u_char *compr)
+#ifndef __llvm__
+    __attribute__((section ("text_inflate")))
+#endif
+;
 
 int
 inflate(struct workspace *wsptr, int nohdr, u_char* clear, u_char *compr)



More information about the openfirmware mailing list