Add -lm dependency for gettextlib to fix LTO build
[platform/upstream/gettext.git] / gettext-tools / src / open-catalog.h
1 /* Opening PO files.
2    Copyright (C) 1995-1997, 2000-2003, 2006, 2015 Free Software
3    Foundation, Inc.
4
5    This program is free software: you can redistribute it and/or modify
6    it under the terms of the GNU General Public License as published by
7    the Free Software Foundation; either version 3 of the License, or
8    (at your option) any later version.
9
10    This program is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13    GNU General Public License for more details.
14
15    You should have received a copy of the GNU General Public License
16    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
17
18 #ifndef _OPEN_CATALOG_H
19 #define _OPEN_CATALOG_H
20
21 #include <stdbool.h>
22 #include <stdio.h>
23
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28
29
30 /* Open the input file with the name INPUT_NAME.  The ending .po is added
31    if necessary.  If INPUT_NAME is not an absolute file name and the file is
32    not found, the list of directories in "dir-list.h" is searched.  The
33    file's pathname is returned in *REAL_FILE_NAME_P, for error message
34    purposes.  */
35 extern FILE *open_catalog_file (const char *input_name,
36                                 char **real_file_name_p, bool exit_on_error);
37
38
39 #ifdef __cplusplus
40 }
41 #endif
42
43
44 #endif /* _OPEN_CATALOG_H */