From: Roger Leigh <rleigh@...>
Date: Fri, 13 Jan 2006 00:18:55 +0000
Robert L Krawitz <rlk@...> writes:
> I'd like to release -rc2, probably around the beginning of next week.
> The one thing I have that I'd like to get done is the list of options
> I started working on. Does anyone have anything else they'd like to
> see included?
I just found this uncommitted change. Did you want it?
This fixes some inlining issue, right?
- --
Roger Leigh
Printing on GNU/Linux? http://gimp-print.sourceforge.net/
Debian GNU/Linux http://www.debian.org/
GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8+ <http://mailcrypt.sourceforge.net/>
iD8DBQFDxvHEVcFcaSW/uEgRApN9AKDBj4qY6aMKA30qEDQCYSSLdcW5qACg8gpR
V4AcKUVflT+iKCL33D1rv2I=
=8sbF
-----END PGP SIGNATURE-----
--=-=-=
Content-Type: text/x-patch
Content-Disposition: inline; filename=diff
Content-Description: Test if the compiler supports __attribute__ syntax
? src/cups/catalog
Index: configure.ac
===================================================================
RCS file: /cvsroot/gimp-print/print/configure.ac,v
retrieving revision 1.132
diff -u -r1.132 configure.ac
--- configure.ac 29 Dec 2005 00:41:23 -0000 1.132
+++ configure.ac 13 Jan 2006 00:16:07 -0000
@@ -618,6 +618,25 @@
fi
AC_SUBST(GNUCFLAGS)
+AH_TEMPLATE([HAVE_GCC_ATTRIBUTES],
+ [Define to 1 if GCC special attributes are supported])
+AC_MSG_CHECKING([if $CC supports __attribute__ syntax])
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([typedef struct __attribute__((__packed__)) {
+ unsigned char foo;
+ char bar;
+ long baz;
+} test_struct_t;],
+ [test_struct_t mystruct;])],
+ [AC_MSG_RESULT([yes])]
+ AC_DEFINE([HAVE_GCC_ATTRIBUTES], 1),
+ [AC_MSG_RESULT([no])])
+
+AH_VERBATIM([HAVE_GCC_ATTRIBUTES_BOILERPLATE],
+[#ifndef HAVE_GCC_ATTRIBUTES
+/* This should really be a C99 anonymous variadic macro. */
+#define __attribute__(attr)
+#endif])
+
dnl Checks for libraries.
dnl When checking readline, check using extra libraries first.
dnl We want to protect against the link somehow succeeding, but only
Index: src/main/util.h
===================================================================
RCS file: /cvsroot/gimp-print/print/src/main/util.h,v
retrieving revision 1.32
diff -u -r1.32 util.h
--- src/main/util.h 17 Sep 2004 18:38:27 -0000 1.32
+++ src/main/util.h 13 Jan 2006 00:16:07 -0000
@@ -42,12 +42,6 @@
extern "C" {
#endif
-#ifndef __GNUC__
-#ifndef __attribute__
-#define __attribute__(ignore)
-#endif
-#endif
-
/**
* Utility functions (internal).
*
--=-=-=--
|