diff options
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 |