1 /* PSPP - computes sample statistics.
2 Copyright (C) 2006 Free Software Foundation, Inc.
3 Written by Ben Pfaff <blp@gnu.org>.
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License as
7 published by the Free Software Foundation; either version 2 of the
8 License, or (at your option) any later version.
10 This program is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23 /* GNU C allows the programmer to declare that certain functions take
24 printf-like arguments, never return, etc. Conditionalize these
25 declarations on whether gcc is in use. */
27 #define ATTRIBUTE(X) __attribute__ (X)
29 /* Only necessary because of a wart in gnulib's xalloc.h. */
30 #define __attribute__(X) __attribute__ (X)
35 #define UNUSED ATTRIBUTE ((unused))
36 #define NO_RETURN ATTRIBUTE ((noreturn))
37 #define PRINTF_FORMAT(FMT, FIRST) ATTRIBUTE ((format (printf, FMT, FIRST)))
38 #define SCANF_FORMAT(FMT, FIRST) ATTRIBUTE ((format (scanf, FMT, FIRST)))
40 /* This attribute was added late in the GCC 2.x cycle. */
42 #define MALLOC_LIKE ATTRIBUTE ((malloc))
47 /* This attribute was added in GCC 4.0. */
49 #define WARN_UNUSED_RESULT ATTRIBUTE ((warn_unused_result))
51 #define WARN_UNUSED_RESULT
54 #endif /* compiler.h */