comparison lib/obstack.c @ 3966:22d3032f0239

Include gettext.h instead of <libintl.h> with #ifdefs.
author Bruno Haible <bruno@clisp.org>
date Tue, 05 Nov 2002 21:45:29 +0000
parents a21efb4d3486
children 7158a1db8695
comparison
equal deleted inserted replaced
3965:b62502a177f7 3966:22d3032f0239
1 /* obstack.c - subroutines used implicitly by object stack macros 1 /* obstack.c - subroutines used implicitly by object stack macros
2 Copyright (C) 1988-1994,96,97,98,99,2000,2001 Free Software Foundation, Inc. 2 Copyright (C) 1988-1994, 1996-1999, 2000-2002 Free Software Foundation, Inc.
3 This file is part of the GNU C Library. Its master source is NOT part of 3 This file is part of the GNU C Library. Its master source is NOT part of
4 the C library, however. The master source lives in /gd/gnu/lib. 4 the C library, however. The master source lives in /gd/gnu/lib.
5 5
6 The GNU C Library is free software; you can redistribute it and/or 6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public 7 modify it under the terms of the GNU Lesser General Public
456 } 456 }
457 return nbytes; 457 return nbytes;
458 } 458 }
459 459
460 /* Define the error handler. */ 460 /* Define the error handler. */
461 # ifndef _ 461 # ifdef _LIBC
462 # if (HAVE_LIBINTL_H && ENABLE_NLS) || defined _LIBC 462 # include <libintl.h>
463 # include <libintl.h> 463 # else
464 # ifndef _ 464 # include "gettext.h"
465 # define _(Str) gettext (Str) 465 # endif
466 # endif 466 # define _(msgid) gettext (msgid)
467 # else 467
468 # define _(Str) (Str)
469 # endif
470 # endif
471 # if defined _LIBC && defined USE_IN_LIBIO 468 # if defined _LIBC && defined USE_IN_LIBIO
472 # include <libio/iolibio.h> 469 # include <libio/iolibio.h>
473 # define fputs(s, f) _IO_fputs (s, f) 470 # define fputs(s, f) _IO_fputs (s, f)
474 # endif 471 # endif
475 472