fixed compilation on cygwin
This commit is contained in:
parent
c6fe62d2c0
commit
0251a935a8
1 changed files with 14 additions and 1 deletions
15
src/I18n.hh
15
src/I18n.hh
|
@ -22,7 +22,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// $Id: I18n.hh,v 1.2 2003/12/08 17:29:24 fluxgen Exp $
|
// $Id: I18n.hh,v 1.3 2004/03/13 11:14:21 fluxgen Exp $
|
||||||
|
|
||||||
#ifndef I18N_HH
|
#ifndef I18N_HH
|
||||||
#define I18N_HH
|
#define I18N_HH
|
||||||
|
@ -33,6 +33,7 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif // HAVE_CONFIG_H
|
#endif // HAVE_CONFIG_H
|
||||||
|
|
||||||
|
|
||||||
#ifdef HAVE_LOCALE_H
|
#ifdef HAVE_LOCALE_H
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
#endif // HAVE_LOCALE_H
|
#endif // HAVE_LOCALE_H
|
||||||
|
@ -42,6 +43,18 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include <nl_types.h>
|
#include <nl_types.h>
|
||||||
}
|
}
|
||||||
|
#elif defined(__CYGWIN__)
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif // __cplusplus
|
||||||
|
typedef int nl_catd;
|
||||||
|
char *catgets(nl_catd cat, int set_number, int message_number, char *message);
|
||||||
|
nl_catd catopen(char *name, int flag);
|
||||||
|
void catclose(nl_catd cat);
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif // __cplusplus
|
||||||
|
|
||||||
#endif // HAVE_NL_TYPES_H
|
#endif // HAVE_NL_TYPES_H
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
Loading…
Reference in a new issue