diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2010-05-15 02:50:43 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2010-05-15 02:50:43 +0000 |
commit | f751cdbc44151416e0e7ad3b8d6e55898f2030ef (patch) | |
tree | 229255ef3578d8bf21cd559f6bb28a1b906c6a81 /Build/source/texk/kpathsea/debug.c | |
parent | 7c7fd723c7ab7cad6a302ebc0560ced54b5d3d41 (diff) |
avoid late declaration.
git-svn-id: svn://tug.org/texlive/trunk@18279 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/debug.c')
-rw-r--r-- | Build/source/texk/kpathsea/debug.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Build/source/texk/kpathsea/debug.c b/Build/source/texk/kpathsea/debug.c index 9cddaae3854..5e4af3b6283 100644 --- a/Build/source/texk/kpathsea/debug.c +++ b/Build/source/texk/kpathsea/debug.c @@ -25,10 +25,12 @@ FILE * fopen (const char *filename, const char *mode) { +#if defined (KPSE_COMPAT_API) + kpathsea kpse = kpse_def; +#endif #undef fopen FILE *ret = fopen (filename, mode); #if defined (KPSE_COMPAT_API) - kpathsea kpse = kpse_def; if (KPATHSEA_DEBUG_P (KPSE_DEBUG_FOPEN)) DEBUGF3 ("fopen(%s, %s) => 0x%lx\n", filename, mode, (unsigned long) ret); #endif @@ -38,10 +40,12 @@ fopen (const char *filename, const char *mode) int fclose (FILE * f) { +#if defined (KPSE_COMPAT_API) + kpathsea kpse = kpse_def; +#endif #undef fclose int ret = fclose (f); #if defined (KPSE_COMPAT_API) - kpathsea kpse = kpse_def; if (KPATHSEA_DEBUG_P (KPSE_DEBUG_FOPEN)) DEBUGF2 ("fclose(0x%lx) => %d\n", (unsigned long) f, ret); #endif |