Prep for ceval.
1 /* vim: set ts=4 sw=4 tw=99 et:
3 * Copyright (C) 2004-2012 David Anderson
5 * This file is part of SourcePawn.
7 * SourcePawn is free software: you can redistribute it and/or modify it under
8 * the terms of the GNU General Public License as published by the Free
9 * Software Foundation, either version 3 of the License, or (at your option)
12 * SourcePawn is distributed in the hope that it will be useful, but WITHOUT ANY
13 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along with
17 * SourcePawn. If not, see http://www.gnu.org/licenses/.
19 #ifndef _include_keima_util_h_
20 #define _include_keima_util_h_
23 # if defined(KE_EXPORTING)
24 # define KE_EXPORT __declspec(dllexport)
25 # elif defined(KE_IMPORTING)
26 # define KE_EXPORT __declspec(dllimport)
31 #if defined(_M_X64) || defined(__64bit__) || defined(__x86_64__)
36 #if defined(_M_IX86) || defined(__i386__)
38 # error "Detected 32-bit and 64-bit!"
43 #if !defined(KE_32BIT) && !defined(KE_64BIT)
44 # error "Could not detect CPU type"
47 #if !defined(KE_EXPORT)
51 #if defined(_MSC_VER) && _MSC_VER < 1600
52 typedef __int8 int8_t;
53 typedef unsigned __int8 uint8_t;
54 typedef __int16 int16_t;
55 typedef unsigned __int16 uint16_t;
56 typedef __int32 int32_t;
57 typedef unsigned __int32 uint32_t;
58 typedef __int64 int64_t;
59 typedef unsigned __int64 uint64_t;
64 #endif // _include_keima_util_h_