cvs-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Cvs-cvs] ccvs ChangeLog config.h.in configure configure.in


From: Derek Robert Price
Subject: [Cvs-cvs] ccvs ChangeLog config.h.in configure configure.in
Date: Tue, 25 Apr 2006 20:02:45 +0000

CVSROOT:        /cvsroot/cvs
Module name:    ccvs
Branch:         
Changes by:     Derek Robert Price <address@hidden>     06/04/25 20:02:45

Modified files:
        .              : ChangeLog config.h.in configure configure.in 

Log message:
        * configure.in: Move GNU function attribute protection from src/cvs.h.
        (Report from Mark D. Baushke <address@hidden>.)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/cvs/ccvs/ChangeLog.diff?tr1=1.1294&tr2=1.1295&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/cvs/ccvs/config.h.in.diff?tr1=1.197&tr2=1.198&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/cvs/ccvs/configure.diff?tr1=1.444&tr2=1.445&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/cvs/ccvs/configure.in.diff?tr1=1.364&tr2=1.365&r1=text&r2=text

Patches:
Index: ccvs/ChangeLog
diff -u ccvs/ChangeLog:1.1294 ccvs/ChangeLog:1.1295
--- ccvs/ChangeLog:1.1294       Tue Apr 25 14:51:13 2006
+++ ccvs/ChangeLog      Tue Apr 25 20:02:45 2006
@@ -1,5 +1,8 @@
 2006-04-25  Derek Price  <address@hidden>
 
+       * configure.in: Move GNU function attribute protection from src/cvs.h.
+       (Report from Mark D. Baushke <address@hidden>.)
+
        * maint-aux/gnulib-filelist.txt: Updated by gnulib-update.
 
        * maint-aux/gnulib-update: Do cleanup on CTRL-C.
Index: ccvs/config.h.in
diff -u ccvs/config.h.in:1.197 ccvs/config.h.in:1.198
--- ccvs/config.h.in:1.197      Mon Apr 24 18:50:24 2006
+++ ccvs/config.h.in    Tue Apr 25 20:02:45 2006
@@ -1229,6 +1229,27 @@
 /* Define to rpl_ if the openat replacement function should be used. */
 #undef __OPENAT_PREFIX
 
+#ifndef __attribute__
+  /* Function attributes are available in gcc versions 2.5 and later.  */
+# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__
+#  define __attribute__(Spec) /* empty */
+# endif
+# if __GNUC__ == 2 && __GNUC_MINOR__ < 96
+#   define __pure__    /* empty */
+# endif
+# if __GNUC__ < 3
+#   define __malloc__  /* empty */
+# endif
+  /* The __-protected variants of `format' and `printf' attributes
+     are accepted by gcc versions 2.6.4 (effectively 2.7) and later.  */
+# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7)
+#   define __const__   const
+#   define __format__  format
+#   define __noreturn__        noreturn
+#   define __printf__  printf
+# endif
+#endif /* __attribute__ */
+
 /* Define to empty if `const' does not conform to ANSI C. */
 #undef const
 
Index: ccvs/configure
diff -u ccvs/configure:1.444 ccvs/configure:1.445
--- ccvs/configure:1.444        Tue Apr 25 14:51:22 2006
+++ ccvs/configure      Tue Apr 25 20:02:45 2006
@@ -33720,6 +33720,12 @@
 
 
 
+# Avoid using GCC function attributes when they are not available.
+
+
+
+
+
 # Check for function existance.
 
 
Index: ccvs/configure.in
diff -u ccvs/configure.in:1.364 ccvs/configure.in:1.365
--- ccvs/configure.in:1.364     Mon Apr 24 18:50:24 2006
+++ ccvs/configure.in   Tue Apr 25 20:02:45 2006
@@ -271,6 +271,31 @@
 
 
 
+# Avoid using GCC function attributes when they are not available.
+AH_VERBATIM([__attribute__],
+[#ifndef __attribute__
+  /* Function attributes are available in gcc versions 2.5 and later.  */
+# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__
+#  define __attribute__(Spec) /* empty */
+# endif
+# if __GNUC__ == 2 && __GNUC_MINOR__ < 96
+#   define __pure__    /* empty */
+# endif
+# if __GNUC__ < 3
+#   define __malloc__  /* empty */
+# endif
+  /* The __-protected variants of `format' and `printf' attributes
+     are accepted by gcc versions 2.6.4 (effectively 2.7) and later.  */
+# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7)
+#   define __const__   const
+#   define __format__  format
+#   define __noreturn__        noreturn
+#   define __printf__  printf
+# endif
+#endif /* __attribute__ */])
+
+
+
 # Check for function existance.
 AC_CHECK_FUNCS(\
        fchdir \




reply via email to

[Prev in Thread] Current Thread [Next in Thread]