libsmbios_c library
message.h
Go to the documentation of this file.
1 /* vim:expandtab:autoindent:tabstop=4:shiftwidth=4:filetype=c:cindent:
2  *
3  * Copyright (C) 2005 Dell Inc.
4  * by Michael Brown <Michael_E_Brown@dell.com>
5  * Licensed under the Open Software License version 2.1
6  *
7  * Alternatively, you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published
9  * by the Free Software Foundation; either version 2 of the License,
10  * or (at your option) any later version.
11 
12  * This program is distributed in the hope that it will be useful, but
13  * WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15  * See the GNU General Public License for more details.
16  */
17 
18 
19 #ifndef _MESSAGE_H
20 #define _MESSAGE_H
21 
22 /* This header file should only ever be included in .cpp files. It should never
23  * be included in header files, due to the fact that it will sometimes mess up
24  * portions of the standard library because of the redefinitions.
25  *
26  * Always include this file as the last include in the .cpp file, if it is
27  * needed.
28  */
29 
30 #include "smbios/compat.h"
31 
32 #if defined(LIBSMBIOS_HAS_GETTEXT)
33 # include <libintl.h>
34 # define _(String) gettext (String)
35 # define gettext_noop(String) String
36 # define N_(String) gettext_noop (String)
37 #else
38 # define _(string) string
39 # define N_(string) string
40 # define textdomain(Domain)
41 # define bindtextdomain(Package, Directory)
42 #endif
43 
44 
45 #endif /* _MESSAGE_H */