]> git.sesse.net Git - stockfish/blob - src/types.h
init_eval: small cleanup
[stockfish] / src / types.h
1 /*
2   Glaurung, a UCI chess playing engine.
3   Copyright (C) 2004-2008 Tord Romstad
4
5   Glaurung is free software: you can redistribute it and/or modify
6   it under the terms of the GNU General Public License as published by
7   the Free Software Foundation, either version 3 of the License, or
8   (at your option) any later version.
9   
10   Glaurung is distributed in the hope that it will be useful,
11   but WITHOUT ANY WARRANTY; without even the implied warranty of
12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13   GNU General Public License for more details.
14   
15   You should have received a copy of the GNU General Public License
16   along with this program.  If not, see <http://www.gnu.org/licenses/>.
17 */
18
19
20 #if !defined(TYPES_H_INCLUDED)
21 #define TYPES_H_INCLUDED
22
23 #if !defined(_MSC_VER)
24
25 #include <inttypes.h>
26
27 #else
28
29 typedef __int8 int8_t;
30 typedef unsigned __int8 uint8_t;
31 typedef __int16 int16;
32 typedef unsigned __int16 uint16_t;
33 typedef __int32 int32;
34 typedef unsigned __int32 uint32_t;
35 typedef __int64 int64;
36 typedef unsigned __int64 uint64_t;
37
38 typedef __int16 int16_t;
39 typedef __int64 int64_t;
40
41 #endif // !defined(_MSC_VER)
42
43 // Hash keys:
44 typedef uint64_t Key;
45
46 #endif // !defined(TYPES_H_INCLUDED)