DeSR Dependency Parser |
00001 /* ixe/platform.h. Generated from platform.h.in by configure. */ 00002 /* 00003 ** DeSR 00004 ** ixe/platform.h 00005 ** ---------------------------------------------------------------------- 00006 ** Copyright (c) 2005 Giuseppe Attardi (attardi@di.unipi.it). 00007 ** ---------------------------------------------------------------------- 00008 ** 00009 ** This file is part of DeSR. 00010 ** 00011 ** DeSR is free software; you can redistribute it and/or modify it 00012 ** under the terms of the GNU General Public License, version 3, 00013 ** as published by the Free Software Foundation. 00014 ** 00015 ** DeSR is distributed in the hope that it will be useful, 00016 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 ** GNU General Public License for more details. 00019 ** 00020 ** You should have received a copy of the GNU General Public License 00021 ** along with this program. If not, see <http://www.gnu.org/licenses/>. 00022 ** ---------------------------------------------------------------------- 00023 */ 00024 00025 #ifndef IXE_platform_H 00026 #define IXE_platform_H 00027 00028 #define PATH_SEPARATOR '/' 00029 00030 #define MIN (std::min) 00031 #define MAX (std::max) 00032 00033 // byte order 00034 /* #undef WORDS_BIGENDIAN */ 00035 00036 // alloca() 00037 #define HAVE_ALLOCA 1 00038 00039 // Unicode 00040 /* #undef LEXLEN */ 00041 00042 // assert() 00043 #define NDEBUG 1 00044 00045 // Define if your compiler has std::unordered_map 00046 /* #undef HAVE_STD_UNORDERED_MAP */ 00047 00048 // Define if your compiler has std::unordered_set 00049 /* #undef HAVE_STD_UNORDERED_SET */ 00050 00051 // Define if your compiler has std::tr1::unordered_map 00052 #define HAVE_TR1_UNORDERED_MAP 00053 00054 // Define if your compiler has std::tr1::unordered_set 00055 #define HAVE_TR1_UNORDERED_SET 00056 00057 // Define if you have hash_map and hash_set includes in ext/ directory. 00058 /* #undef HAVE_EXT_HASH_MAP_SET */ 00059 00060 /* 00061 * Large-file configuration. 00062 * Disable with configure --disable-largefile 00063 * (produces index with 32-bit offsets for postings) 00064 */ 00065 /* #undef _FILE_OFFSET_BITS */ 00066 /* #undef _LARGE_FILES */ 00067 00068 #ifdef __sun 00069 # define __PRAGMA_REDEFINE_EXTNAME 00070 #endif 00071 00072 /* 00073 * Provide proper definitions for off64_t 00074 */ 00075 /* #undef off64_t */ 00076 typedef int off32_t; 00077 00078 /* Determine if processor requires byte alignment */ 00079 #define BYTE_ALIGN 1 00080 00081 /* 00082 * Compute value of getpagesize() 00083 */ 00084 #define PAGE_SIZE 4096 00085 00086 /* Enable GNU extensions. */ 00087 #define _GNU_SOURCE 1 00088 00089 /* Use thread-safe versions of libc functions. */ 00090 #define _REENTRANT 1 00091 00092 #ifdef __DECCXX 00093 #define __USE_STD_IOSTREAM 00094 #endif 00095 00096 #define GMTIME(time, tm) { time_t __gmtime_tmp = *time; gmtime_r(&__gmtime_tmp, &tm); } 00097 #define time_now(time) gettimeofday(time, 0); 00098 00099 #endif /* IXE_platform_H */