1/* Common macro definitions for C include files.
2   Copyright (C) 2009 Free Software Foundation, Inc.
3
4   This program is free software: you can redistribute it and/or modify it
5   under the terms of the GNU Lesser General Public License as published
6   by the Free Software Foundation; either version 3 of the License, or
7   (at your option) any later version.
8
9   This program is distributed in the hope that it will be useful,
10   but WITHOUT ANY WARRANTY; without even the implied warranty of
11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12   Lesser General Public License for more details.
13
14   You should have received a copy of the GNU Lesser General Public License
15   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
16
17#ifndef _UNISTRING_CDEFS_H
18#define _UNISTRING_CDEFS_H
19
20/* The definition of _GL_UNUSED_PARAMETER is copied here.  */
21/* _GL_UNUSED_PARAMETER is a marker that can be appended to function parameter
22   declarations for parameters that are not used.  This helps to reduce
23   warnings, such as from GCC -Wunused-parameter.  The syntax is as follows:
24       type param _GL_UNUSED_PARAMETER
25   or more generally
26       param_decl _GL_UNUSED_PARAMETER
27   For example:
28       int param _GL_UNUSED_PARAMETER
29       int *(*param)(void) _GL_UNUSED_PARAMETER
30   Other possible, but obscure and discouraged syntaxes:
31       int _GL_UNUSED_PARAMETER *(*param)(void)
32       _GL_UNUSED_PARAMETER int *(*param)(void)
33 */
34#ifndef _GL_UNUSED_PARAMETER
35# if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
36#  define _GL_UNUSED_PARAMETER __attribute__ ((__unused__))
37# else
38#  define _GL_UNUSED_PARAMETER
39# endif
40#endif
41
42#endif /* _UNISTRING_CDEFS_H */
43