[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gnugo-devel] 'play_gtp.c' doesn't see 'sys/times.h' in MINGW
From: |
Gunnar Farneback |
Subject: |
Re: [gnugo-devel] 'play_gtp.c' doesn't see 'sys/times.h' in MINGW |
Date: |
Mon, 15 Oct 2001 20:23:42 +0200 |
User-agent: |
EMH/1.14.1 SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.3 Emacs/20.7 (sparc-sun-solaris2.7) (with unibyte mode) |
Trevor wrote:
> Here's a simple patch for the reported problem
> - Use Win32 API to get CPU time usage for all Win32 builds, not just VC.
> [...]
> --- play_gtp.c 2001/10/15 02:17:05 1.29
> +++ play_gtp.c 2001/10/15 16:59:05
> @@ -28,7 +28,7 @@
> #include <assert.h>
> #include <ctype.h>
> #include <string.h>
> -#ifndef HAVE_VISUAL_C
> +#ifndef WIN32
> #include <sys/times.h>
> #endif
I would prefer if we could limit these platform dependent things to
gg_utils.c, like we do with e.g. writing in color.
/Gunnar