gnugo-devel
[Top][All Lists]
Advanced

[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: Trevor Morris
Subject: Re: [gnugo-devel] 'play_gtp.c' doesn't see 'sys/times.h' in MINGW
Date: Mon, 15 Oct 2001 13:12:27 -0400

Here's a simple patch for the reported problem
 - Use Win32 API to get CPU time usage for all Win32 builds, not just VC.

http://www.public32.com/games/go/trevor_mingw32_1_11.2


BTW, I got the lots of the following warnings when building with the MINGW32.
Is this normal, or is my cygwin environment out-of date?
/usr/include/w32api/winnt.h:2511: warning: no previous prototype for
`GetCurrent
Fiber'
/usr/include/w32api/winnt.h:2522: warning: no previous prototype for
`GetFiberDa
ta'



At 05:37 PM 10/15/2001 +0200, Denis Dupeyron wrote:
>Hi,
>
>I found a bug in version 3.1.10 when compiling with CFLAGS=-mno-cygwin.
>....

Index: play_gtp.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/interface/play_gtp.c,v
retrieving revision 1.29
diff -u -b -r1.29 play_gtp.c
--- 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
 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]