From: Andreas Jaeger <aj@suse.de>
To: Glibc hackers <libc-hacker@sources.redhat.com>
Subject: error in include/time.h
Date: Tue, 10 Jan 2006 19:32:00 -0000 [thread overview]
Message-ID: <m3irsr5164.fsf@gromit.moeb> (raw)
[-- Attachment #1: Type: text/plain, Size: 2723 bytes --]
I now get:
gcc tst-initializers1-c89.c -c -std=gnu99 -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -Wstrict-prototypes -W -Wall -Werror -std=c89 -I../include -I/builds/glibc/10.0-nptl/nptl -I/builds/glibc/10.0-nptl -I../sysdeps/x86_64/elf -I../nptl/sysdeps/unix/sysv/linux/x86_64 -I../sysdeps/unix/sysv/linux/x86_64 -I../sysdeps/unix/sysv/linux/wordsize-64 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/x86_64 -I../nptl/sysdeps/unix -I../libidn/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/x86_64/fpu -I../nptl/sysdeps/x86_64 -I../sysdeps/x86_64 -I../sysdeps/wordsize-64 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../nptl/sysdeps/generic -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I.. -I../libio -I. -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DNOT_IN_libc=1 -o /builds/glibc/10.0-nptl/nptl/tst-initializers1-c89.o -MD -MP -MF /builds/glibc/10.0-nptl/nptl/tst-initializers1-c89.o.dt -MT /builds/glibc/10.0-nptl/nptl/tst-initializers1-c89.o
In file included from ../nptl/sysdeps/pthread/pthread.h:24,
from ../include/pthread.h:1,
from tst-initializers1.c:20,
from tst-initializers1-c89.c:1:
../include/time.h:95: error: syntax error before ‘/’ token
In file included from ../nptl/sysdeps/pthread/pthread.h:24,
from ../include/pthread.h:1,
from tst-initializers1.c:20,
from tst-initializers1-c89.c:1:
../include/time.h:95:31: error: multi-character character constant
Here's a patch. Ok to commit?
Andreas
2006-01-10 Andreas Jaeger <aj@suse.de>
* include/time.h: Use normal comments.
============================================================
Index: include/time.h
--- include/time.h 23 Dec 2005 01:51:08 -0000 1.26
+++ include/time.h 10 Jan 2006 19:00:44 -0000
@@ -92,7 +92,7 @@ extern int __getclktck (void);
/* strptime support. */
/* Status of lookup: do we use the locale data or the raw data? */
#ifndef __cplusplus
-// C++ cannot deal with using 'not'.
+/* C++ cannot deal with using 'not'. */
enum ptime_locale_status { not, loc, raw };
extern char * __strptime_internal (const char *rp, const char *fmt,
--
Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]
next reply other threads:[~2006-01-10 19:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-10 19:32 Andreas Jaeger [this message]
2006-01-10 19:44 ` Ulrich Drepper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3irsr5164.fsf@gromit.moeb \
--to=aj@suse.de \
--cc=libc-hacker@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).