mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-15 17:40:06 +00:00
Don't define CLK_TCK for strictly ISO C compliant programs.
This commit is contained in:
parent
f2e7413870
commit
197b1bfd03
@ -1,5 +1,5 @@
|
||||
/* System-dependent timing definitions. Linux/Alpha version.
|
||||
Copyright (C) 1996, 1997 Free Software Foundation, Inc.
|
||||
Copyright (C) 1996, 1997, 1998 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
|
||||
@ -33,9 +33,11 @@
|
||||
XSI-conformant systems. */
|
||||
# define CLOCKS_PER_SEC 1000000
|
||||
|
||||
# ifndef __STRICT_ANSI__
|
||||
/* Even though CLOCKS_PER_SEC has such a strange value CLK_TCK
|
||||
presents the real value for clock ticks per second for the system. */
|
||||
# define CLK_TCK 1024
|
||||
# define CLK_TCK 1024
|
||||
# endif
|
||||
|
||||
# endif /* bits/time.h */
|
||||
#endif /* !__need_timeval */
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* System-dependent timing definitions. Linux/MIPS version.
|
||||
Copyright (C) 1996, 1997 Free Software Foundation, Inc.
|
||||
Copyright (C) 1996, 1997, 1998 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
|
||||
@ -33,9 +33,11 @@
|
||||
XSI-conformant systems. */
|
||||
# define CLOCKS_PER_SEC 1000000
|
||||
|
||||
# ifndef __STRICT_ANSI__
|
||||
/* Even though CLOCKS_PER_SEC has such a strange value CLK_TCK
|
||||
presents the real value for clock ticks per second for the system. */
|
||||
# define CLK_TCK 100 /* XXX not correct for all systems. */
|
||||
# define CLK_TCK 100 /* XXX not correct for all systems. */
|
||||
# endif
|
||||
|
||||
# endif /* bits/time.h */
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user