1 #ifndef _SRC_CLUCENE_INTERNAL_CLUCENE_CONFIG_H
2 #define _SRC_CLUCENE_INTERNAL_CLUCENE_CONFIG_H 1
4 /* src/shared/CLucene/_clucene-config.h.
5 * Generated automatically at end of cmake.
6 * These are internal definitions, and this file does not need to be distributed
9 /* CMake will look for these functions: */
10 /* #undef _CL_HAVE_FUNCTION__VSNWPRINTF */
11 /* #undef _CL_HAVE_FUNCTION__SNWPRINTF */
12 #define _CL_HAVE_FUNCTION_WCSCASECMP
13 #define _CL_HAVE_FUNCTION_WCSCAT 1
14 #define _CL_HAVE_FUNCTION_WCSCHR 1
15 #define _CL_HAVE_FUNCTION_WCSCMP 1
16 #define _CL_HAVE_FUNCTION_WCSCPY 1
17 #define _CL_HAVE_FUNCTION_WCSCSPN 1
18 /* #undef _CL_HAVE_FUNCTION_WCSICMP */
19 #define _CL_HAVE_FUNCTION_WCSLEN 1
20 #define _CL_HAVE_FUNCTION_WCSNCMP 1
21 #define _CL_HAVE_FUNCTION_WCSNCPY 1
22 #define _CL_HAVE_FUNCTION_WCSSTR 1
23 #define _CL_HAVE_FUNCTION_WCSTOD 1
24 /* #undef _CL_HAVE_FUNCTION_WCSDUP 1 */
25 #define _CL_HAVE_FUNCTION_WCSTOLL 1
26 /* #undef _CL_HAVE_FUNCTION_WCSUPR */
27 #define _CL_HAVE_FUNCTION_GETTIMEOFDAY 1
28 /* #undef _CL_HAVE_FUNCTION_MAPVIEWOFFILE */
30 /* #undef _CL_HAVE_FUNCTION_LLTOA */
31 /* #undef _CL_HAVE_FUNCTION_LLTOW */
32 #define _CL_HAVE_FUNCTION_PRINTF 1
33 #define _CL_HAVE_FUNCTION_SNPRINTF 1
34 #define _CL_HAVE_FUNCTION_MMAP 1
35 /* #undef _CL_HAVE_FUNCTION_STRLWR */
36 #define _CL_HAVE_FUNCTION_STRTOLL 1
37 /* #undef _CL_HAVE_FUNCTION_STRUPR */
38 /* #undef _CL_HAVE_FUNCTION_GETPAGESIZE */
39 #define _CL_HAVE_FUNCTION_USLEEP 1
40 /* #undef _CL_HAVE_FUNCTION_SLEEP */
42 #define CL_MAX_PATH 4096
43 //this is the max filename... for now its just the same,
44 //but this could change, so we use a different name
45 #define CL_MAX_NAME CL_MAX_PATH
46 //this used to be CL_MAX_NAME * 32, but as Alex Hudson points out, this could come to be 128kb.
47 //the above logic for CL_MAX_NAME should be correct enough to handle all file names
48 #define CL_MAX_DIR CL_MAX_PATH
52 #define _S_IREAD S_IREAD
53 #define _S_IWRITE S_IWRITE
56 #define _ILONG(x) x ## L
57 #define _ILONGLONG(x) x ## LL
60 #define cl_stat_t stat
61 #define fileSize CL_NS(util)::Misc::filelength
62 #define fileSeek lseek
63 #define fileTell(fhandle) fileSeek(fhandle, 0, SEEK_CUR)
64 #define fileHandleStat fstat
65 #define _realpath realpath
66 #define _rename rename
71 #define _snprintf snprintf
72 #define _mkdir(x) mkdir(x,0777)
73 #define _unlink unlink
75 #define SLEEPFUNCTION usleep
77 /* CMake will determine these specifics. Things like bugs, etc */
79 /* Does not support new float byte<->float conversions */
80 /* #undef _CL_HAVE_NO_FLOAT_BYTE */
82 /* Define if recursive pthread mutexes are available */
83 #define _CL_HAVE_PTHREAD_MUTEX_RECURSIVE 1
85 /** define if you would like to force clucene to use the internal
86 * character functions.
87 * Tests may display unpredictable behaviour if this is not defined.
89 #ifndef LUCENE_USE_INTERNAL_CHAR_FUNCTIONS
90 #define LUCENE_USE_INTERNAL_CHAR_FUNCTIONS 1
93 /** fix ansi for loop scope */
95 #define for if (0); else for
99 /* Compiler oddities */
101 //not sure why, but cygwin reports _S_IREAD, but doesn't actually work...
102 //TODO: make this work properly (this bit shouldn't be necessary)
104 #define _S_IREAD 0333
105 #define _S_IWRITE 0333
108 #ifdef __BORLANDC__ //borland compiler