This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
unterminated string in public header file
- From: Bruno Haible <bruno at clisp dot org>
- To: libc-alpha at sources dot redhat dot com
- Date: Thu, 16 May 2002 13:20:55 +0200 (CEST)
- Subject: unterminated string in public header file
A public header file, sysdeps/unix/sysv/aix/bits/ioctl-types.h, contains a
string that crosses lines. But strings spanning multiple lines without
backslash-newline are a gcc extension, and would break when someone uses
a non-gcc compiler on this target. (Even gcc gets confused about such
unterminated strings if they occur in preprocessor statements.)
2002-05-16 Bruno Haible <bruno@clisp.org>
* sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
string as argument of #error.
--- glibc-20020425/sysdeps/unix/sysv/aix/bits/ioctl-types.h.bak Tue Jul 10 23:01:30 2001
+++ glibc-20020425/sysdeps/unix/sysv/aix/bits/ioctl-types.h Thu May 16 01:16:07 2002
@@ -1,5 +1,5 @@
/* Structure types for pre-termios terminal ioctls. AIX version.
- Copyright (C) 1999, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -18,8 +18,7 @@
02111-1307 USA. */
#ifndef _SYS_IOCTL_H
-# error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead
-"
+# error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."
#endif
/* Constants for use with `ioctl'. */