comparison 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
parents e5ee9891c553
children 404ee875898f
comparison
equal deleted inserted replaced
8319:d1eb4f557f34 8320:3e28c7035f38
17 along with this program; if not, write to the Free Software Foundation, 17 along with this program; if not, write to the Free Software Foundation,
18 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ 18 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
19 19
20 #include <config.h> 20 #include <config.h>
21 21
22 #if !HAVE_STRERROR
23
22 #include <limits.h> 24 #include <limits.h>
23
24 #if !HAVE_STRERROR
25 25
26 /* Don't include <stdio.h>, since it may or may not declare 26 /* Don't include <stdio.h>, since it may or may not declare
27 sys_errlist and its declarations may collide with ours. Just 27 sys_errlist and its declarations may collide with ours. Just
28 declare the stuff that we need directly. Standard hosted C89 28 declare the stuff that we need directly. Standard hosted C89
29 implementations define strerror and they don't need this strerror 29 implementations define strerror and they don't need this strerror
46 } 46 }
47 else 47 else
48 return sys_errlist[n]; 48 return sys_errlist[n];
49 } 49 }
50 50
51 #endif /* !HAVE_STRERROR */ 51 #else
52
53 /* This declaration is solely to ensure that after preprocessing
54 this file is never empty. */
55 typedef int dummy;
56
57 #endif