/* localize.h (i18n/l10n) */1/* $OpenLDAP$ */2/* This work is part of OpenLDAP Software <http://www.openldap.org/>.3*4* Copyright 1998-2024 The OpenLDAP Foundation.5* All rights reserved.6*7* Redistribution and use in source and binary forms, with or without8* modification, are permitted only as authorized by the OpenLDAP9* Public License.10*11* A copy of this license is available in file LICENSE in the12* top-level directory of the distribution or, alternatively, at13* <http://www.OpenLDAP.org/license.html>.14*/1516#ifndef _AC_LOCALIZE_H17#define _AC_LOCALIZE_H1819#ifdef LDAP_LOCALIZE2021# include <locale.h>22# include <libintl.h>2324/* enable i18n/l10n */25# define gettext_noop(s) s26# define _(s) gettext(s)27# define N_(s) gettext_noop(s)28# define ldap_pvt_setlocale(c,l) ((void) setlocale(c, l))29# define ldap_pvt_textdomain(d) ((void) textdomain(d))30# define ldap_pvt_bindtextdomain(p,d) ((void) bindtextdomain(p, d))3132#else3334/* disable i18n/l10n */35# define _(s) s36# define N_(s) s37# define ldap_pvt_setlocale(c,l) ((void) 0)38# define ldap_pvt_textdomain(d) ((void) 0)39# define ldap_pvt_bindtextdomain(p,d) ((void) 0)4041#endif4243#endif /* _AC_LOCALIZE_H */444546