These are taken care of
[apertium.git] / lttoolbox-unicode / lttoolbox / my_stdio.h
blob25dda1f0b42172cb921e11eddf3d26d0a7c250fc
1 /*
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
17 * 02111-1307, USA.
20 // cstdio wrapper for backwards compatibility
22 #ifndef _IOHEADER_
23 #define _IOHEADER_
25 #include <lttoolbox/lttools_config.h>
27 #include <cstdio>
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
35 #endif
37 #if !HAVE_DECL_FGETC_UNLOCKED
38 #define fgetc_unlocked fgetc
39 #endif
41 #if !HAVE_DECL_FPUTC_UNLOCKED
42 #define fputc_unlocked fputc
43 #endif
45 #if !HAVE_DECL_FWRITE_UNLOCKED
46 #define fwrite_unlocked fwrite
47 #endif
49 #if !HAVE_DECL_FREAD_UNLOCKED
50 #define fread_unlocked fread
51 #endif
53 #if !HAVE_DECL_FGETWC_UNLOCKED
54 #define fgetwc_unlocked fgetwc
55 #endif
57 #if !HAVE_DECL_FPUTWC_UNLOCKED
58 #define fputwc_unlocked fputwc
59 #endif
61 #if !HAVE_DECL_FPUTWS_UNLOCKED
62 #define fputws_unlocked fputws
63 #endif
67 #endif