source: main/trunk/greenstone2/common-src/indexers/mg/lib/mglong.h@ 29051

Last change on this file since 29051 was 29051, checked in by ak19, 10 years ago

Dr Bainbridge made some fixes to header file inclusions so that when compiling with Visual Studio 12 (2013) on Windows (64 bit), GS2 still compiles successfully

File size: 748 bytes
Line 
1/* See http://stackoverflow.com/questions/6802903/c-ifdef-mac-os-x-question and
2 * http://stackoverflow.com/questions/5919996/how-to-detect-reliably-mac-os-x-ios-linux-windows-in-c-preprocessor */
3#ifndef MGLONG_H
4#define MGLONG_H
5
6#if defined __unix__ || defined __APPLE__ || defined __MINGW32__ || (_MSC_VER >= 1800)
7#include <stdint.h>
8#else
9typedef __int8 int8_t;
10typedef __int16 int16_t;
11typedef __int32 int32_t;
12typedef __int64 int64_t;
13typedef unsigned __int8 uint8_t;
14typedef unsigned __int16 uint16_t;
15typedef unsigned __int32 uint32_t;
16typedef unsigned __int64 uint64_t;
17#endif
18
19#ifndef mg_u_long
20#define mg_u_long uint32_t
21#endif
22
23#ifndef mg_s_long
24#define mg_s_long int32_t
25#endif
26
27#endif
Note: See TracBrowser for help on using the repository browser.