Oops, really avoid an empty translation unit.
authorBruno Haible <bruno@clisp.org>
Sun, 4 Mar 2007 00:06:30 +0000 (00:06 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 4 Mar 2007 00:06:30 +0000 (00:06 +0000)
lib/strerror.c

index c8c757f..54b851b 100644 (file)
 
 #include <config.h>
 
-#include <limits.h>
-
 #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
    declare the stuff that we need directly.  Standard hosted C89
@@ -48,4 +48,10 @@ strerror (int n)
     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