* error in include/time.h
@ 2006-01-10 19:32 Andreas Jaeger
2006-01-10 19:44 ` Ulrich Drepper
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Jaeger @ 2006-01-10 19:32 UTC (permalink / raw)
To: Glibc hackers
[-- 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 --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: error in include/time.h
2006-01-10 19:32 error in include/time.h Andreas Jaeger
@ 2006-01-10 19:44 ` Ulrich Drepper
0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Drepper @ 2006-01-10 19:44 UTC (permalink / raw)
To: Andreas Jaeger; +Cc: Glibc hackers
[-- Attachment #1: Type: text/plain, Size: 126 bytes --]
That's harmless enough, go ahead.
--
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 251 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-01-10 19:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-10 19:32 error in include/time.h Andreas Jaeger
2006-01-10 19:44 ` Ulrich Drepper
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).