From: Bruno Haible Date: Mon, 1 Aug 2005 11:14:00 +0000 (+0000) Subject: Add version number to libintl. X-Git-Tag: v0.15~444 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df1631073034c3ffb64143d1c756caa3e42e4759;p=thirdparty%2Fgettext.git Add version number to libintl. --- diff --git a/gettext-runtime/intl/ChangeLog b/gettext-runtime/intl/ChangeLog index 637aa339d..c1533c1a6 100644 --- a/gettext-runtime/intl/ChangeLog +++ b/gettext-runtime/intl/ChangeLog @@ -1,3 +1,16 @@ +2005-07-25 Bruno Haible + + * libgnuintl.h.in (LIBINTL_VERSION): New macro. + (libintl_version): New declaration. + * version.c: New file. + * Makefile.in (SOURCES): Add version.c. + (OBJECTS): Add version.$lo. + (version.lo): New rule. + * Makefile.msvc (OBJECTS): Add version.obj. + (version.obj): New rule. + * Makefile.vms (OBJECTS): Add version.obj. + (version.obj): New rule. + 2005-07-25 Bruno Haible * intl-compat.c (DLL_EXPORTED) [HAVE_VISIBILITY]: Define to the gcc diff --git a/gettext-runtime/intl/Makefile.in b/gettext-runtime/intl/Makefile.in index ca99d48e3..54d055abd 100644 --- a/gettext-runtime/intl/Makefile.in +++ b/gettext-runtime/intl/Makefile.in @@ -108,6 +108,7 @@ SOURCES = \ localename.c \ log.c \ printf.c \ + version.c \ osdep.c \ os2compat.c \ intl-compat.c @@ -136,6 +137,7 @@ OBJECTS = \ localename.$lo \ log.$lo \ printf.$lo \ + version.$lo \ osdep.$lo \ intl-compat.$lo DISTFILES.common = Makefile.in \ @@ -235,6 +237,8 @@ log.lo: $(srcdir)/log.c $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/log.c printf.lo: $(srcdir)/printf.c $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/printf.c +version.lo: $(srcdir)/version.c + $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/version.c osdep.lo: $(srcdir)/osdep.c $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/osdep.c intl-compat.lo: $(srcdir)/intl-compat.c diff --git a/gettext-runtime/intl/Makefile.msvc b/gettext-runtime/intl/Makefile.msvc index f639f0f70..e658e8b42 100644 --- a/gettext-runtime/intl/Makefile.msvc +++ b/gettext-runtime/intl/Makefile.msvc @@ -99,7 +99,7 @@ INSTALL_DATA = copy SHELL = /bin/sh -OBJECTS = bindtextdom.obj dcgettext.obj dgettext.obj gettext.obj finddomain.obj hash-string.obj loadmsgcat.obj localealias.obj textdomain.obj l10nflist.obj explodename.obj dcigettext.obj dcngettext.obj dngettext.obj ngettext.obj plural.obj plural-exp.obj localcharset.obj lock.obj relocatable.obj langprefs.obj localename.obj log.obj printf.obj osdep.obj intl-compat.obj +OBJECTS = bindtextdom.obj dcgettext.obj dgettext.obj gettext.obj finddomain.obj hash-string.obj loadmsgcat.obj localealias.obj textdomain.obj l10nflist.obj explodename.obj dcigettext.obj dcngettext.obj dngettext.obj ngettext.obj plural.obj plural-exp.obj localcharset.obj lock.obj relocatable.obj langprefs.obj localename.obj log.obj printf.obj version.obj osdep.obj intl-compat.obj RESOURCES = intl.res @@ -184,6 +184,9 @@ log.obj : $(srcdir)\log.c libgnuintl.h $(srcdir)\lock.h printf.obj : $(srcdir)\printf.c libgnuintl.h $(srcdir)\printf-args.h $(srcdir)\printf-args.c $(srcdir)\printf-parse.h $(srcdir)\wprintf-parse.h $(srcdir)\printf-parse.c $(srcdir)\vasnprintf.h $(srcdir)\vasnwprintf.h $(srcdir)\vasnprintf.c $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c $(srcdir)\printf.c +version.obj : $(srcdir)\version.c libgnuintl.h + $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c $(srcdir)\version.c + osdep.obj : $(srcdir)\osdep.c libgnuintl.h $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c $(srcdir)\osdep.c diff --git a/gettext-runtime/intl/Makefile.vms b/gettext-runtime/intl/Makefile.vms index 1c28f066c..b6b8eb203 100644 --- a/gettext-runtime/intl/Makefile.vms +++ b/gettext-runtime/intl/Makefile.vms @@ -45,7 +45,7 @@ INSTALL_DATA = copy #### End of system configuration section. #### -OBJECTS = bindtextdom.obj,dcgettext.obj,dgettext.obj,gettext.obj,finddomain.obj,hash-string.obj,loadmsgcat.obj,localealias.obj,textdomain.obj,l10nflist.obj,explodename.obj,dcigettext.obj,dcngettext.obj,dngettext.obj,ngettext.obj,plural-parse.obj,plural-exp.obj,localcharset.obj,lock.obj,relocatable.obj,langprefs.obj,localename.obj,log.obj,osdep.obj,intl-compat.obj +OBJECTS = bindtextdom.obj,dcgettext.obj,dgettext.obj,gettext.obj,finddomain.obj,hash-string.obj,loadmsgcat.obj,localealias.obj,textdomain.obj,l10nflist.obj,explodename.obj,dcigettext.obj,dcngettext.obj,dngettext.obj,ngettext.obj,plural-parse.obj,plural-exp.obj,localcharset.obj,lock.obj,relocatable.obj,langprefs.obj,localename.obj,log.obj,version.obj,osdep.obj,intl-compat.obj all : intl.olb,libintl.h write sys$output "Nothing else to be done for 'all'." @@ -122,6 +122,9 @@ localename.obj : $(srcdir)localename.c,libgnuintl.h log.obj : $(srcdir)log.c,libgnuintl.h,$(srcdir)lock.h $(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) $(srcdir)log.c +version.obj : $(srcdir)version.c,libgnuintl.h + $(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) $(srcdir)version.c + osdep.obj : $(srcdir)osdep.c,libgnuintl.h $(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) $(srcdir)osdep.c diff --git a/gettext-runtime/intl/libgnuintl.h.in b/gettext-runtime/intl/libgnuintl.h.in index 538f43da6..d0df69939 100644 --- a/gettext-runtime/intl/libgnuintl.h.in +++ b/gettext-runtime/intl/libgnuintl.h.in @@ -52,6 +52,11 @@ extern "C" { #endif +/* Version number: (major<<16) + (minor<<8) + subminor */ +#define LIBINTL_VERSION 0x000E05 +extern int libintl_version; + + /* We redirect the functions to those prefixed with "libintl_". This is necessary, because some systems define gettext/textdomain/... in the C library (namely, Solaris 2.4 and newer, and GNU libc 2.0 and newer). diff --git a/gettext-runtime/intl/version.c b/gettext-runtime/intl/version.c new file mode 100644 index 000000000..a968cf746 --- /dev/null +++ b/gettext-runtime/intl/version.c @@ -0,0 +1,26 @@ +/* libintl library version. + Copyright (C) 2005 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +#ifdef HAVE_CONFIG_H +# include +#endif + +#include "libgnuintl.h" + +/* Version number: (major<<16) + (minor<<8) + subminor */ +int libintl_version = LIBINTL_VERSION;