diff lib/strerror.c @ 8320:3e28c7035f38

Oops, really avoid an empty translation unit.
author Bruno Haible <bruno@clisp.org>
date Sun, 04 Mar 2007 00:06:30 +0000 (2007-03-04)
parents e5ee9891c553
children 404ee875898f
line wrap: on
line diff
--- a/lib/strerror.c
+++ b/lib/strerror.c
@@ -19,9 +19,9 @@
 
 #include <config.h>
 
-#include <limits.h>
+#if !HAVE_STRERROR
 
-#if !HAVE_STRERROR
+#include <limits.h>
 
 /* Don't include <stdio.h>, since it may or may not declare
    sys_errlist and its declarations may collide with ours.  Just
@@ -48,4 +48,10 @@
     return sys_errlist[n];
 }
 
-#endif /* !HAVE_STRERROR */
+#else
+
+/* This declaration is solely to ensure that after preprocessing
+   this file is never empty.  */
+typedef int dummy;
+
+#endif