From 99ac48c3bfbbb38adfc161e2cd25571b4984c58d Mon Sep 17 00:00:00 2001 From: ishmal Date: Fri, 20 Apr 2007 17:51:12 +0000 Subject: [PATCH] Switch from the HAVE_GETTIMEOFDAY option to NEED_GETTIMEOFDAY since most people have it. --- buildtool.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/buildtool.cpp b/buildtool.cpp index 9fd3e464c..6d1dd25a8 100644 --- a/buildtool.cpp +++ b/buildtool.cpp @@ -31,13 +31,14 @@ * or * btool {target} * - * Note: recent win32api builds from MinGW have gettimeofday() - * defined, so you might need to build with - * g++ -O3 -DHAVE_GETTIMEOFDAY buildtool.cpp -o btool.exe + * Note: if you are using MinGW, and a not very recent version of it, + * gettimeofday() might be missing. If so, just build this file with + * this command: + * g++ -O3 -DNEED_GETTIMEOFDAY buildtool.cpp -o btool.exe * */ -#define BUILDTOOL_VERSION "BuildTool v0.6.11, 2007 Bob Jamison" +#define BUILDTOOL_VERSION "BuildTool v0.6.12, 2007 Bob Jamison" #include #include @@ -65,7 +66,7 @@ //######################################################################## //# Definition of gettimeofday() for those who don't have it //######################################################################## -#ifndef HAVE_GETTIMEOFDAY +#ifdef NEED_GETTIMEOFDAY #include struct timezone { -- 2.30.2