Don't define CLK_TCK for strictly ISO C compliant programs.
authorUlrich Drepper <drepper@redhat.com>
Thu, 30 Jul 1998 12:45:33 +0000 (12:45 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 30 Jul 1998 12:45:33 +0000 (12:45 +0000)
sysdeps/unix/sysv/linux/alpha/bits/time.h
sysdeps/unix/sysv/linux/mips/bits/time.h

index 7f26efd..acb2b41 100644 (file)
@@ -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
    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 */
index a7b268d..91dc65c 100644 (file)
@@ -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
    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