1*7c478bd9Sstevel@tonic-gate /* 2*7c478bd9Sstevel@tonic-gate * CDDL HEADER START 3*7c478bd9Sstevel@tonic-gate * 4*7c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the 5*7c478bd9Sstevel@tonic-gate * Common Development and Distribution License, Version 1.0 only 6*7c478bd9Sstevel@tonic-gate * (the "License"). You may not use this file except in compliance 7*7c478bd9Sstevel@tonic-gate * with the License. 8*7c478bd9Sstevel@tonic-gate * 9*7c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*7c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 11*7c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions 12*7c478bd9Sstevel@tonic-gate * and limitations under the License. 13*7c478bd9Sstevel@tonic-gate * 14*7c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 15*7c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*7c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 17*7c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 18*7c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 19*7c478bd9Sstevel@tonic-gate * 20*7c478bd9Sstevel@tonic-gate * CDDL HEADER END 21*7c478bd9Sstevel@tonic-gate */ 22*7c478bd9Sstevel@tonic-gate /* 23*7c478bd9Sstevel@tonic-gate * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 24*7c478bd9Sstevel@tonic-gate * Use is subject to license terms. 25*7c478bd9Sstevel@tonic-gate */ 26*7c478bd9Sstevel@tonic-gate 27*7c478bd9Sstevel@tonic-gate /* Libintl is a library of advanced internationalization functions. */ 28*7c478bd9Sstevel@tonic-gate 29*7c478bd9Sstevel@tonic-gate #ifndef _LIBINTL_H 30*7c478bd9Sstevel@tonic-gate #define _LIBINTL_H 31*7c478bd9Sstevel@tonic-gate 32*7c478bd9Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 33*7c478bd9Sstevel@tonic-gate 34*7c478bd9Sstevel@tonic-gate #include <sys/isa_defs.h> 35*7c478bd9Sstevel@tonic-gate 36*7c478bd9Sstevel@tonic-gate #ifdef __cplusplus 37*7c478bd9Sstevel@tonic-gate extern "C" { 38*7c478bd9Sstevel@tonic-gate #endif 39*7c478bd9Sstevel@tonic-gate 40*7c478bd9Sstevel@tonic-gate /* 41*7c478bd9Sstevel@tonic-gate * wchar_t is a built-in type in standard C++ and as such is not 42*7c478bd9Sstevel@tonic-gate * defined here when using standard C++. However, the GNU compiler 43*7c478bd9Sstevel@tonic-gate * fixincludes utility nonetheless creates it's own version of this 44*7c478bd9Sstevel@tonic-gate * header for use by gcc and g++. In that version it adds a redundant 45*7c478bd9Sstevel@tonic-gate * guard for __cplusplus. To avoid the creation of a gcc/g++ specific 46*7c478bd9Sstevel@tonic-gate * header we need to include the following magic comment: 47*7c478bd9Sstevel@tonic-gate * 48*7c478bd9Sstevel@tonic-gate * we must use the C++ compiler's type 49*7c478bd9Sstevel@tonic-gate * 50*7c478bd9Sstevel@tonic-gate * The above comment should not be removed or changed until GNU 51*7c478bd9Sstevel@tonic-gate * gcc/fixinc/inclhack.def is updated to bypass this header. 52*7c478bd9Sstevel@tonic-gate */ 53*7c478bd9Sstevel@tonic-gate #if !defined(__cplusplus) || (__cplusplus < 199711L && !defined(__GNUG__)) 54*7c478bd9Sstevel@tonic-gate #ifndef _WCHAR_T 55*7c478bd9Sstevel@tonic-gate #define _WCHAR_T 56*7c478bd9Sstevel@tonic-gate #if defined(_LP64) 57*7c478bd9Sstevel@tonic-gate typedef int wchar_t; 58*7c478bd9Sstevel@tonic-gate #else 59*7c478bd9Sstevel@tonic-gate typedef long wchar_t; 60*7c478bd9Sstevel@tonic-gate #endif 61*7c478bd9Sstevel@tonic-gate #endif /* !_WCHAR_T */ 62*7c478bd9Sstevel@tonic-gate #endif /* !defined(__cplusplus) ... */ 63*7c478bd9Sstevel@tonic-gate 64*7c478bd9Sstevel@tonic-gate #define TEXTDOMAINMAX 256 65*7c478bd9Sstevel@tonic-gate 66*7c478bd9Sstevel@tonic-gate #ifdef __STDC__ 67*7c478bd9Sstevel@tonic-gate extern char *dcgettext(const char *, const char *, const int); 68*7c478bd9Sstevel@tonic-gate extern char *dgettext(const char *, const char *); 69*7c478bd9Sstevel@tonic-gate extern char *gettext(const char *); 70*7c478bd9Sstevel@tonic-gate extern char *textdomain(const char *); 71*7c478bd9Sstevel@tonic-gate extern char *bindtextdomain(const char *, const char *); 72*7c478bd9Sstevel@tonic-gate 73*7c478bd9Sstevel@tonic-gate /* 74*7c478bd9Sstevel@tonic-gate * LI18NUX 2000 Globalization Specification Version 1.0 75*7c478bd9Sstevel@tonic-gate * with Amendment 2 76*7c478bd9Sstevel@tonic-gate */ 77*7c478bd9Sstevel@tonic-gate extern char *dcngettext(const char *, const char *, 78*7c478bd9Sstevel@tonic-gate const char *, unsigned long int, int); 79*7c478bd9Sstevel@tonic-gate extern char *dngettext(const char *, const char *, 80*7c478bd9Sstevel@tonic-gate const char *, unsigned long int); 81*7c478bd9Sstevel@tonic-gate extern char *ngettext(const char *, const char *, unsigned long int); 82*7c478bd9Sstevel@tonic-gate extern char *bind_textdomain_codeset(const char *, const char *); 83*7c478bd9Sstevel@tonic-gate 84*7c478bd9Sstevel@tonic-gate /* Word handling functions --- requires dynamic linking */ 85*7c478bd9Sstevel@tonic-gate /* Warning: these are experimental and subject to change. */ 86*7c478bd9Sstevel@tonic-gate extern int wdinit(void); 87*7c478bd9Sstevel@tonic-gate extern int wdchkind(wchar_t); 88*7c478bd9Sstevel@tonic-gate extern int wdbindf(wchar_t, wchar_t, int); 89*7c478bd9Sstevel@tonic-gate extern wchar_t *wddelim(wchar_t, wchar_t, int); 90*7c478bd9Sstevel@tonic-gate extern wchar_t mcfiller(void); 91*7c478bd9Sstevel@tonic-gate extern int mcwrap(void); 92*7c478bd9Sstevel@tonic-gate 93*7c478bd9Sstevel@tonic-gate #else 94*7c478bd9Sstevel@tonic-gate extern char *dcgettext(); 95*7c478bd9Sstevel@tonic-gate extern char *dgettext(); 96*7c478bd9Sstevel@tonic-gate extern char *gettext(); 97*7c478bd9Sstevel@tonic-gate extern char *textdomain(); 98*7c478bd9Sstevel@tonic-gate extern char *bindtextdomain(); 99*7c478bd9Sstevel@tonic-gate 100*7c478bd9Sstevel@tonic-gate /* 101*7c478bd9Sstevel@tonic-gate * LI18NUX 2000 Globalization Specification Version 1.0 102*7c478bd9Sstevel@tonic-gate * with Amendment 2 103*7c478bd9Sstevel@tonic-gate */ 104*7c478bd9Sstevel@tonic-gate extern char *dcngettext(); 105*7c478bd9Sstevel@tonic-gate extern char *dngettext(); 106*7c478bd9Sstevel@tonic-gate extern char *ngettext(); 107*7c478bd9Sstevel@tonic-gate extern char *bind_textdomain_codeset(); 108*7c478bd9Sstevel@tonic-gate 109*7c478bd9Sstevel@tonic-gate /* Word handling functions --- requires dynamic linking */ 110*7c478bd9Sstevel@tonic-gate /* Warning: these are experimental and subject to change. */ 111*7c478bd9Sstevel@tonic-gate extern int wdinit(); 112*7c478bd9Sstevel@tonic-gate extern int wdchkind(); 113*7c478bd9Sstevel@tonic-gate extern int wdbindf(); 114*7c478bd9Sstevel@tonic-gate extern wchar_t *wddelim(); 115*7c478bd9Sstevel@tonic-gate extern wchar_t mcfiller(); 116*7c478bd9Sstevel@tonic-gate extern int mcwrap(); 117*7c478bd9Sstevel@tonic-gate 118*7c478bd9Sstevel@tonic-gate #endif 119*7c478bd9Sstevel@tonic-gate 120*7c478bd9Sstevel@tonic-gate #ifdef __cplusplus 121*7c478bd9Sstevel@tonic-gate } 122*7c478bd9Sstevel@tonic-gate #endif 123*7c478bd9Sstevel@tonic-gate 124*7c478bd9Sstevel@tonic-gate #endif /* _LIBINTL_H */ 125