remove _() from vips_init

since it will be compiled by clients and they may not be using i18n
This commit is contained in:
John Cupitt 2013-11-08 21:12:24 +00:00
parent f0d4760560
commit 7463edb783
1 changed files with 7 additions and 4 deletions

View File

@ -149,16 +149,19 @@ extern "C" {
#include <vips/almostdeprecated.h> #include <vips/almostdeprecated.h>
#include <vips/dispatch.h> #include <vips/dispatch.h>
/* We can't use _ here since this will be compiled by our clients and they may
* not have _().
*/
#define vips_init( ARGV0 ) \ #define vips_init( ARGV0 ) \
(sizeof( VipsObject ) != vips__get_sizeof_vipsobject() ? ( \ (sizeof( VipsObject ) != vips__get_sizeof_vipsobject() ? ( \
vips_info( "vips_init", "%s", _( "ABI mismatch" ) ), \ vips_info( "vips_init", "ABI mismatch" ), \
vips_info( "vips_init", \ vips_info( "vips_init", \
_( "library has sizeof(VipsObject) == %zd" ), \ "library has sizeof(VipsObject) == %zd", \
vips__get_sizeof_vipsobject() ), \ vips__get_sizeof_vipsobject() ), \
vips_info( "vips_init", \ vips_info( "vips_init", \
_( "application has sizeof(VipsObject) == %zd" ), \ "application has sizeof(VipsObject) == %zd", \
sizeof( VipsObject() ) ), \ sizeof( VipsObject() ) ), \
vips_error( "vips_init", "%s", _( "ABI mismatch" ) ), \ vips_error( "vips_init", "ABI mismatch" ), \
-1 ) : \ -1 ) : \
vips__init( ARGV0 )) vips__init( ARGV0 ))