Fix Cygwin gcc compiling
[bonanza.git] / shogi.h
diff --git a/shogi.h b/shogi.h
index 8c55744..cbbe00e 100644 (file)
--- a/shogi.h
+++ b/shogi.h
@@ -8,9 +8,15 @@
 #if defined(_WIN32)
 
 #  include <Winsock2.h>
-#  define CONV              __fastcall
+#  ifdef _MSC_VER
+#    define CONV            __fastcall
+#  else
+#    define CONV
+#  endif
 #  define SCKT_NULL         INVALID_SOCKET
+#  define WIN32_PIPE
 typedef SOCKET sckt_t;
+char *strtok_r( char *s, const char *t, char **next);
 
 #else