00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef SHEEP_MISC_TYPES_H
00024 #define SHEEP_MISC_TYPES_H
00025
00026 #include "config.h"
00027
00028 namespace sheep {
00029
00030 #ifdef _MSC_VER
00031 typedef char int8;
00032 typedef unsigned char uint8;
00033 typedef short int16;
00034 typedef unsigned short uint16;
00035 typedef int int32;
00036 typedef unsigned int uint32;
00037 typedef __int64 int64;
00038 typedef unsigned __int64 uint64;
00039
00040 typedef float float32;
00041 typedef double float64;
00042 #elif defined __GNUC__
00043 typedef char int8;
00044 typedef unsigned char uint8;
00045 typedef short int16;
00046 typedef unsigned short uint16;
00047 typedef int int32;
00048 typedef unsigned int uint32;
00049 typedef long long int64;
00050 typedef unsigned long long uint64;
00051
00052 typedef float float32;
00053 typedef double float64;
00054 #else
00055 #error Please define integral types for your platform.
00056 #endif // _MSC_VER
00057
00058 }
00059
00060 #if defined _MSC_VER && _MSC_VER <= 1200
00061
00062 #include <iostream>
00063
00064
00065
00066 std::ostream &operator<<(std::ostream &os, int64 i);
00067
00068 #endif // _MSC_VER
00069
00070 #endif // !SHEEP_MISC_TYPES_H