common.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #include "lib/memory.h"
00016
00017 #ifndef __COMMON_H__
00018 #define __COMMON_H__
00019
00020 #include <stdlib.h>
00021 #include <stdio.h>
00022 #include "lib/config.h"
00023
00024 #ifndef LINUX
00025 #define RANDOM_MAX 2147483647
00026 #else
00027 #define RANDOM_MAX RAND_MAX
00028 #endif
00029
00034
00035 #include <stdint.h>
00036
00041 typedef float float32_t;
00042 typedef double float64_t;
00043 typedef long double floatmax_t;
00044
00046
00047 #ifdef HAVE_BOOST_SERIALIZATION
00048
00049 #define GLOBAL_BOOST_SERIALIZATION_SPLIT_MEMBER() \
00050 template<class Archive> \
00051 void serialize(Archive &ar, const unsigned int file_version) \
00052 { \
00053 ::boost::serialization::split_member(ar, *this, file_version); \
00054 }
00055
00056 #endif //HAVE_BOOST_SERIALIZATION
00057
00058 #endif //__COMMON_H__