]> git.sesse.net Git - freerainbowtables/blob - Common/rt api/global.h
64-bit fixes for distrrtgen
[freerainbowtables] / Common / rt api / global.h
1 /*
2  * freerainbowtables is a project for generating, distributing, and using
3  * perfect rainbow tables
4  *
5  * Copyright 2009, 2010 DaniĆ«l Niggebrugge <niggebrugge@fox-it.com>
6  * Copyright 2009, 2010 James Nobis <frt@quelrod.net>
7  *
8  * This file is part of freerainbowtables.
9  *
10  * freerainbowtables is free software: you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation, either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * freerainbowtables is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with freerainbowtables.  If not, see <http://www.gnu.org/licenses/>.
22  */
23
24 #ifndef _GLOBAL_H
25 #define _GLOBAL_H
26
27 #if defined(_WIN32) && !defined(__GNUC__)
28         #define uint64 unsigned __int64
29 #else
30         #ifndef u_int64_t
31                 #define uint64 unsigned long long
32         #else
33                 #define uint64 u_int64_t
34         #endif
35 #endif
36
37 #if defined(_WIN32) && !defined(__GNUC__)
38         #define UINT4 unsigned __int32
39         #define uint32 unsigned __int32
40 #else
41         #ifndef u_int32_t
42                 #define UINT4 unsigned int
43                 #define uint32 unsigned int
44         #else
45                 #define UINT4 u_int32_t
46                 #define uint32 u_int32_t
47         #endif
48 #endif
49
50 #endif /* !GLOBAL_H */