Hash :
694e8acc
Author :
Date :
2023-04-05T02:36:02
duplocale: Fix compilation error on Haiku (regression 2023-01-22). * lib/locale.in.h (duplocale): If HAVE_DUPLOCALE = 0, don't declare it, even if REPLACE_DUPLOCALE = 1. * modules/duplocale (Depends-on, configure.ac): Don't compile a replacement if HAVE_DUPLOCALE = 0 and REPLACE_DUPLOCALE = 1.
Description:
duplocale() function: duplicate a locale object.
Files:
lib/duplocale.c
m4/duplocale.m4
Depends-on:
locale
setlocale-null [test $HAVE_DUPLOCALE = 1 && test $REPLACE_DUPLOCALE = 1]
configure.ac:
gl_FUNC_DUPLOCALE
gl_CONDITIONAL([GL_COND_OBJ_DUPLOCALE],
[test $HAVE_DUPLOCALE = 1 && test $REPLACE_DUPLOCALE = 1])
AM_COND_IF([GL_COND_OBJ_DUPLOCALE], [
gl_PREREQ_DUPLOCALE
])
gl_LOCALE_MODULE_INDICATOR([duplocale])
Makefile.am:
if GL_COND_OBJ_DUPLOCALE
lib_SOURCES += duplocale.c
endif
Include:
<locale.h>
Link:
$(DUPLOCALE_LIB)
License:
LGPL
Maintainer:
all