2 * Copyright (C) 2005 Universitat d'Alacant / Universidad de Alicante
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of the
7 * License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
20 // cstdio wrapper for backwards compatibility
25 #include <lttoolbox/lttools_config.h>
29 // Check individually all '_unlocked' functions because using
30 // g++-2.95 fgetc_unlocked and fputc_unlocked compile perfectly but
31 // fputs_unlocked is not defined in their C headers.
33 #if !HAVE_DECL_FPUTS_UNLOCKED
34 #define fputs_unlocked fputs
37 #if !HAVE_DECL_FGETC_UNLOCKED
38 #define fgetc_unlocked fgetc
41 #if !HAVE_DECL_FPUTC_UNLOCKED
42 #define fputc_unlocked fputc
45 #if !HAVE_DECL_FWRITE_UNLOCKED
46 #define fwrite_unlocked fwrite
49 #if !HAVE_DECL_FREAD_UNLOCKED
50 #define fread_unlocked fread
53 #if !HAVE_DECL_FGETWC_UNLOCKED
54 #define fgetwc_unlocked fgetwc
57 #if !HAVE_DECL_FPUTWC_UNLOCKED
58 #define fputwc_unlocked fputwc
61 #if !HAVE_DECL_FPUTWS_UNLOCKED
62 #define fputws_unlocked fputws