(svn r3303) Change #if PF_BENCHMARK to #ifdef PF_BENCHMARK
authorpeter1138
Wed, 14 Dec 2005 09:15:06 +0000
changeset 2758 e962dd6c3ed4
parent 2757 d1ccb6600be3
child 2759 9a5079782c67
(svn r3303) Change #if PF_BENCHMARK to #ifdef PF_BENCHMARK
train_cmd.c
--- a/train_cmd.c	Wed Dec 14 08:05:36 2005 +0000
+++ b/train_cmd.c	Wed Dec 14 09:15:06 2005 +0000
@@ -2159,7 +2159,7 @@
 };
 
 static const byte _pick_track_table[6] = {1, 3, 2, 2, 0, 0};
-#if PF_BENCHMARK
+#ifdef PF_BENCHMARK
 #if !defined(_MSC_VER)
 unsigned int _rdtsc()
 {
@@ -2188,7 +2188,7 @@
 {
 	TrainTrackFollowerData fd;
 	uint best_track;
-#if PF_BENCHMARK
+#ifdef PF_BENCHMARK
 	int time = _rdtsc();
 	static float f;
 #endif
@@ -2259,7 +2259,7 @@
 		}
 	}
 
-#if PF_BENCHMARK
+#ifdef PF_BENCHMARK
 	time = _rdtsc() - time;
 	f = f * 0.99 + 0.01 * time;
 	printf("PF time = %d %f\n", time, f);