system_clock.c (system_clock_4, [...]): Undefine TCK.
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Wed, 9 Jun 2010 12:55:22 +0000 (12:55 +0000)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Wed, 9 Jun 2010 12:55:22 +0000 (12:55 +0000)
* intrinsics/system_clock.c (system_clock_4, system_clock_8):
Undefine TCK.

From-SVN: r160469

libgfortran/ChangeLog
libgfortran/intrinsics/system_clock.c

index 84675b9..d2acafd 100644 (file)
@@ -1,3 +1,8 @@
+2010-06-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
+
+       * intrinsics/system_clock.c (system_clock_4, system_clock_8):
+       Undefine TCK.
+
 2010-06-04  Thomas Koenig  <tkoenig@gcc.gnu.org>
 
        PR libfortran/34670
index 7806059..7cc82d0 100644 (file)
@@ -56,6 +56,7 @@ system_clock_4(GFC_INTEGER_4 *count, GFC_INTEGER_4 *count_rate,
   GFC_INTEGER_4 mx;
 
 #if defined(HAVE_SYS_TIME_H) && defined(HAVE_GETTIMEOFDAY)
+#undef TCK
 #define TCK 1000
   struct timeval tp1;
 
@@ -117,6 +118,7 @@ system_clock_8 (GFC_INTEGER_8 *count, GFC_INTEGER_8 *count_rate,
   GFC_INTEGER_8 mx;
 
 #if defined(HAVE_SYS_TIME_H) && defined(HAVE_GETTIMEOFDAY)
+#undef TCK
 #define TCK 1000000
   struct timeval tp1;