source: main/trunk/greenstone2/build-src/src/phind/generate/mglong.h@ 26135

Last change on this file since 26135 was 26135, checked in by ak19, 12 years ago

Changing unsigned long to mg_u_long in Phind's suffix.exe program. This did not help to get suffix to work on 64 bit linux, but the changes have not broken it on Windows either (where it already worked). Therefore, since the unsigned long to mg_u_long changes bring this part of the code up to speed with the same changes made elsewhere in the C code, am still committing this.

File size: 506 bytes
Line 
1#ifndef MGLONG_H
2#define MGLONG_H
3
4#if defined __unix__ || defined __APPLE__
5#include <stdint.h>
6#else
7typedef __int8 int8_t;
8typedef __int16 int16_t;
9typedef __int32 int32_t;
10typedef __int64 int64_t;
11typedef unsigned __int8 uint8_t;
12typedef unsigned __int16 uint16_t;
13typedef unsigned __int32 uint32_t;
14typedef unsigned __int64 uint64_t;
15#endif
16#ifndef mg_u_long
17# define mg_u_long uint32_t
18#endif
19#ifndef mg_s_long
20# define mg_s_long int32_t
21#endif
22
23#endif
Note: See TracBrowser for help on using the repository browser.