diff tests/test-fgetc.c @ 15796:22a143e3638f

fgetc, fputc, fread, fwrite tests: Fix link error. * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler on non-MSVC platforms. * tests/test-fputc.c (main): Likewise. * tests/test-fread.c (main): Likewise. * tests/test-fwrite.c (main): Likewise. Reported by Jim Meyering.
author Bruno Haible <bruno@clisp.org>
date Wed, 28 Sep 2011 10:57:32 +0200 (2011-09-28)
parents dd52b68a488b
children 8250f2777afc
line wrap: on
line diff
--- a/tests/test-fgetc.c
+++ b/tests/test-fgetc.c
@@ -35,9 +35,10 @@
 {
   const char *filename = "test-fgetc.txt";
 
-  /* We don't have an fread() function that installs an invalid parameter
+  /* We don't have an fgetc() function that installs an invalid parameter
      handler so far.  So install that handler here, explicitly.  */
-#if MSVC_INVALID_PARAMETER_HANDLING == DEFAULT_HANDLING
+#if HAVE_MSVC_INVALID_PARAMETER_HANDLER \
+    && MSVC_INVALID_PARAMETER_HANDLING == DEFAULT_HANDLING
   gl_msvc_inval_ensure_handler ();
 #endif