src/chess/rules.h

changeset 36
ebe0c961e9a6
parent 33
866025982aa9
child 40
47162a7621da
     1.1 --- a/src/chess/rules.h	Wed Apr 09 18:11:51 2014 +0200
     1.2 +++ b/src/chess/rules.h	Thu Apr 10 11:44:55 2014 +0200
     1.3 @@ -31,7 +31,7 @@
     1.4  #define	RULES_H
     1.5  
     1.6  #include <stdint.h>
     1.7 -#include <time.h>
     1.8 +#include <sys/time.h>
     1.9  
    1.10  #define VALID_MOVE_SYNTAX   0
    1.11  #define INVALID_MOVE_SYNTAX 1
    1.12 @@ -69,7 +69,6 @@
    1.13  
    1.14  typedef uint8_t Board[8][8];
    1.15  
    1.16 -
    1.17  typedef struct {
    1.18      uint8_t piece;
    1.19      uint8_t fromfile;
    1.20 @@ -77,8 +76,8 @@
    1.21      uint8_t tofile;
    1.22      uint8_t torow;
    1.23      uint8_t promotion;
    1.24 -    struct timespec timestamp;
    1.25 -    struct timespec movetime;
    1.26 +    struct timeval timestamp;
    1.27 +    struct timeval movetime;
    1.28      _Bool check;
    1.29      _Bool capture;
    1.30  } Move;

mercurial