From 750ad16f3d27d604661d1c2e39a1a254377ee144 Mon Sep 17 00:00:00 2001 From: tg Date: Wed, 16 Mar 2011 20:03:21 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9C=5F=5Fattribute=5F=5F((format=20(print?= =?UTF-8?q?f,=201,=202)))=E2=80=9D=20and=20=E2=80=9C#define=20printf=20pri?= =?UTF-8?q?ntfoo=E2=80=9D=20don=E2=80=99t=20play=20well=20with=20each=20ot?= =?UTF-8?q?her=20=E2=80=93=20Bionic=20uses=20the=20former,=20unlike=20most?= =?UTF-8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Build.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Build.sh b/Build.sh index 7e251de..394e58f 100644 --- a/Build.sh +++ b/Build.sh @@ -1,5 +1,5 @@ #!/bin/sh -srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.472 2011/02/27 19:29:18 tg Exp $' +srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.473 2011/03/16 20:03:21 tg Exp $' #- # Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 # Thorsten Glaser @@ -976,13 +976,13 @@ ac_test attribute_format '' 'for __attribute__((format))' <<-'EOF' /* force a failure: gcc 1.42 has a false positive here */ int main(void) { return (thiswillneverbedefinedIhope()); } #else - #define printf printfoo + #define fprintf printfoo #include #undef __attribute__ - #undef printf - extern int printf(const char *format, ...) - __attribute__((format (printf, 1, 2))); - int main(int ac, char **av) { return (printf("%s%d", *av, ac)); } + #undef fprintf + extern int fprintf(FILE *, const char *format, ...) + __attribute__((format (printf, 2, 3))); + int main(int ac, char **av) { return (fprintf(stderr, "%s%d", *av, ac)); } #endif EOF ac_test attribute_nonnull '' 'for __attribute__((nonnull))' <<-'EOF'