This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: CLK_TCK
Ulrich Drepper <drepper@redhat.com> writes:
> Andreas Jaeger <aj@suse.de> writes:
>
> > I see - but then both headers should use the same #ifdef. We
> > shouldn't use __STRICT_ANSI__ in one and __USE_POSIX in the other place.
>
> Yes, that's fine. <time.h> should be changed.
Like this?
Andreas
2001-02-06 Andreas Jaeger <aj@suse.de>
* time/time.h (CLK_TCK): Check for !__STRICT_ANSI.
============================================================
Index: time/time.h
--- time/time.h 2001/01/28 05:37:57 1.60
+++ time/time.h 2001/02/06 18:29:49
@@ -42,7 +42,7 @@
# include <bits/time.h>
/* This is the obsolete POSIX.1-1988 name for the same constant. */
-# if defined __USE_POSIX && !defined __USE_XOPEN2K
+# if !defined __STRICT_ANSI__ && !defined __USE_XOPEN2K
# ifndef CLK_TCK
# define CLK_TCK CLOCKS_PER_SEC
# endif
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj