SHOGUN
v1.1.0
|
00001 /* 00002 * This program is free software; you can redistribute it and/or modify 00003 * it under the terms of the GNU General Public License as published by 00004 * the Free Software Foundation; either version 3 of the License, or 00005 * (at your option) any later version. 00006 * 00007 * Written (W) 1999-2009 Soeren Sonnenburg 00008 * Written (W) 1999-2008 Gunnar Raetsch 00009 * Written (W) 2006 Fabio De Bona 00010 * Written (W) 2006 Konrad Rieck 00011 * Written (W) 2006-2008 Christian Gehl 00012 * Copyright (C) 1999-2009 Fraunhofer Institute FIRST and Max-Planck-Society 00013 */ 00014 00015 #include <shogun/lib/memory.h> 00016 00017 #ifndef __COMMON_H__ 00018 #define __COMMON_H__ 00019 00020 #include <stdlib.h> 00021 #include <stdio.h> 00022 #include <shogun/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 00037 /* No feature test: 00038 * ISO C99: 7.8 Format conversion of integer types <inttypes.h> 00039 * 00040 * If not supported make sure that your development environment is 00041 * supporting ISO C99! 00042 */ 00043 #ifdef __STDC_FORMAT_MACROS 00044 #include <inttypes.h> 00045 #else 00046 #define __STDC_FORMAT_MACROS 1 00047 #include <inttypes.h> 00048 #undef __STDC_FORMAT_MACROS 00049 #endif 00050 00055 typedef float float32_t; 00056 typedef double float64_t; 00057 typedef long double floatmax_t; 00058 00060 00061 #define STRING_LEN 256 00062 #define STRING_LEN_STR "256" 00063 typedef char string_t[STRING_LEN]; 00064 00065 typedef int machine_int_t; 00066 00067 #endif //__COMMON_H__