]> git.stg.codes - stg.git/blob - include/os_int.h
Добавление исходников
[stg.git] / include / os_int.h
1 /*
2  *    This program is free software; you can redistribute it and/or modify
3  *    it under the terms of the GNU General Public License as published by
4  *    the Free Software Foundation; either version 2 of the License, or
5  *    (at your option) any later version.
6  *
7  *    This program is distributed in the hope that it will be useful,
8  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
9  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10  *    GNU General Public License for more details.
11  *
12  *    You should have received a copy of the GNU General Public License
13  *    along with this program; if not, write to the Free Software
14  *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
15  */
16
17 /*
18  *    Author : Boris Mikhailenko <stg34@stargazer.dp.ua>
19  */
20
21  /*
22  $Revision: 1.4 $
23  $Date: 2008/03/25 17:41:50 $
24  */
25
26
27 #ifndef OS_INT_H
28 #define OS_INT_H
29
30 #ifdef LINUX
31 #include <stdint.h>
32 #endif
33
34 #ifdef FREE_BSD5
35 #include <inttypes.h>
36 #endif
37
38 #ifdef FREE_BSD
39 #include <sys/inttypes.h>
40 #endif
41
42 #ifdef WIN32
43
44 typedef __int64 int64_t;
45 typedef unsigned __int64 uint64_t;
46
47 typedef int int32_t;
48 typedef unsigned int uint32_t;
49
50 typedef short int int16_t;
51 typedef short unsigned int uint16_t;
52
53 typedef char int8_t;
54 typedef unsigned char uint8_t;
55
56
57 #endif
58
59
60 #endif
61