diff -r 4d3d398ba689 -r 47162a7621da src/chess/rules.h --- a/src/chess/rules.h Wed Apr 16 20:32:25 2014 +0200 +++ b/src/chess/rules.h Wed Apr 16 21:16:05 2014 +0200 @@ -69,6 +69,11 @@ typedef uint8_t Board[8][8]; +struct movetimeval { + uint64_t tv_sec; + int32_t tv_usec; +}; + typedef struct { uint8_t piece; uint8_t fromfile; @@ -76,10 +81,10 @@ uint8_t tofile; uint8_t torow; uint8_t promotion; - struct timeval timestamp; - struct timeval movetime; - _Bool check; - _Bool capture; + struct movetimeval timestamp; + struct movetimeval movetime; + uint8_t check; + uint8_t capture; } Move; typedef struct MoveList MoveList; @@ -92,7 +97,7 @@ typedef struct { uint8_t servercolor; - _Bool timecontrol; + uint8_t timecontrol; uint16_t time; uint16_t addtime; } GameInfo;