X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Flibpspp%2Fcompiler.h;h=a53b44d7161775cc34b5628edf6dcff7b5403745;hb=ac2f16c0421fc0d2d404f9555db5f2eb5d555a7b;hp=b7df277540574ba6021c8d1363309a88c7071958;hpb=be3e711eabe58c0b0a6ef47a1618198e7a2372cf;p=pspp diff --git a/src/libpspp/compiler.h b/src/libpspp/compiler.h index b7df277540..a53b44d716 100644 --- a/src/libpspp/compiler.h +++ b/src/libpspp/compiler.h @@ -1,6 +1,5 @@ /* PSPP - computes sample statistics. Copyright (C) 2006 Free Software Foundation, Inc. - Written by Ben Pfaff . This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -41,8 +40,8 @@ /* Mark a function as taking a printf- or scanf-like format string as its FMT'th argument and that the FIRST'th argument is the first one to be checked against the format string. */ -#define PRINTF_FORMAT(FMT, FIRST) ATTRIBUTE ((format (printf, FMT, FIRST))) -#define SCANF_FORMAT(FMT, FIRST) ATTRIBUTE ((format (scanf, FMT, FIRST))) +#define PRINTF_FORMAT(FMT, FIRST) ATTRIBUTE ((format (__printf__, FMT, FIRST))) +#define SCANF_FORMAT(FMT, FIRST) ATTRIBUTE ((format (__scanf__, FMT, FIRST))) /* Tells the compiler that a function may be treated as if any non-`NULL' pointer it returns cannot alias any other pointer @@ -61,8 +60,8 @@ #endif /* This attribute indicates that the function does not examine - any values except its arguments, and have no effects except - the return value. A function that has pointer arguments and + any values except its arguments, and has no effects except the + return value. A function that has pointer arguments and examines the data pointed to must _not_ be declared `const'. */ #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 5)