1 /*
2 Copyright (C) 2009 Andreas Gruenbacher <agruen@suse.de>
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 by
6 the Free Software Foundation, either version 2.1 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
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #ifndef __MISC_H
19 #define __MISC_H
20
21 #include <stdio.h>
22
23 /* Mark library internal functions as hidden */
24 #if defined(HAVE_VISIBILITY_ATTRIBUTE)
25 # define hidden __attribute__((visibility("hidden")))
26 #else
27 # define hidden /* hidden */
28 #endif
29
30 hidden int __acl_high_water_alloc(void **buf, size_t *bufsize, size_t newsize);
31
32 hidden const char *__acl_quote(const char *str, const char *quote_chars);
33 hidden char *__acl_unquote(char *str);
34
35 hidden char *__acl_next_line(FILE *file);
36
37 #ifdef ENABLE_NLS
38 # include <libintl.h>
39 # define _(x) gettext(x)
40 #else
41 # define _(x) (x)
42 # define textdomain(d) do { } while (0)
43 # define bindtextdomain(d,dir) do { } while (0)
44 #endif
45 #include <locale.h>
46
47 #endif