Version 3.6.0.4, tag libreoffice-3.6.0.4
[LibreOffice.git] / clucene / configs / _clucene-config-generic.h
bloba9fb3310ee547ab58aa718c6330a7727e8f5721c
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
7 */
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
50 #define _O_RANDOM 0
51 #define _O_BINARY 0
52 #define _S_IREAD S_IREAD
53 #define _S_IWRITE S_IWRITE
54 #define _timeb timeb
56 #define _ILONG(x) x ## L
57 #define _ILONGLONG(x) x ## LL
59 #define fileStat stat
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
67 #define _close close
68 #define _read read
69 #define _cl_open open
70 #define _write write
71 #define _snprintf snprintf
72 #define _mkdir(x) mkdir(x,0777)
73 #define _unlink unlink
74 #define _ftime ftime
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
91 #endif
93 /** fix ansi for loop scope */
94 #if 1==0
95 #define for if (0); else for
96 #endif
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)
103 #ifdef __CYGWIN__
104 #define _S_IREAD 0333
105 #define _S_IWRITE 0333
106 #endif
108 #ifdef __BORLANDC__ //borland compiler
109 #define O_RANDOM 0
110 #endif
112 #endif