check for bind_textdomain_codeset, use standard HAVE_FOO semantic for

2001-08-30  Sven Neumann  <sven@gimp.org>

	* configure.in: check for bind_textdomain_codeset, use standard
	HAVE_FOO semantic for difftime.

	* libgimp/gimpintl.h
	* libgimp/libgimp-intl.h
	* libgimp/stdplugins-intl.h: set encoding of message translations
	to UTF-8 if bind_textdomain_codeset() is available. We still
	explicitely set LC_NUMERIC to "C" so we can write and parse floats
	in a defined way independent of the locale. We might want to find
	a cleaner solution for this.

	* plug-ins/script-fu/script-fu-server.c: inverted preprocessor logic
	from NO_DIFFTIME to HAVE_DIFFTIME.

	* plug-ins/script-fu/scripts/trochoid.scm:
	fixed parameter description (bug #59760).
This commit is contained in:
Sven Neumann
2001-08-30 00:21:38 +00:00
committed by Sven Neumann
parent 645642e8d3
commit 12f7df64cf
7 changed files with 55 additions and 44 deletions

View File

@ -50,7 +50,7 @@
#define RESPONSE_HEADER 4
#define MAGIC 'G'
#ifdef NO_DIFFTIME
#ifndef HAVE_DIFFTIME
#define difftime(a,b) (((gdouble)(a)) - ((gdouble)(b)))
#endif