fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / external / clucene / configs / _clucene-config-MSVC.h
blob09ef41cb67b78f47e1e21578334c1e010c82d952
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 * Normally generated automatically at end of cmake,
6 * but here in LibreOffice this actually is a copy of
7 * clucene/configs/_clucene-config-MSVC.h.
8 * These are internal definitions, and this file does not need to be distributed
9 */
11 /* CMake will look for these functions: */
12 #define _CL_HAVE_FUNCTION__VSNWPRINTF
13 #define _CL_HAVE_FUNCTION__SNWPRINTF
14 /* #undef _CL_HAVE_FUNCTION_WCSCASECMP */
15 #define _CL_HAVE_FUNCTION_WCSCAT 1
16 #define _CL_HAVE_FUNCTION_WCSCHR 1
17 #define _CL_HAVE_FUNCTION_WCSCMP 1
18 #define _CL_HAVE_FUNCTION_WCSCPY 1
19 #define _CL_HAVE_FUNCTION_WCSCSPN 1
20 #define _CL_HAVE_FUNCTION_WCSICMP
21 #define _CL_HAVE_FUNCTION_WCSLEN 1
22 #define _CL_HAVE_FUNCTION_WCSNCMP 1
23 #define _CL_HAVE_FUNCTION_WCSNCPY 1
24 #define _CL_HAVE_FUNCTION_WCSSTR 1
25 #define _CL_HAVE_FUNCTION_WCSTOD 1
26 #define _CL_HAVE_FUNCTION_WCSDUP 1
27 /* #undef _CL_HAVE_FUNCTION_WCSTOLL */
28 #define _CL_HAVE_FUNCTION_WCSUPR 1
29 /* #undef _CL_HAVE_FUNCTION_GETTIMEOFDAY */
30 #define _CL_HAVE_FUNCTION_MAPVIEWOFFILE 1
32 /* #undef _CL_HAVE_FUNCTION_LLTOA */
33 /* #undef _CL_HAVE_FUNCTION_LLTOW */
34 #define _CL_HAVE_FUNCTION_PRINTF 1
35 /* #undef _CL_HAVE_FUNCTION_SNPRINTF */
36 /* #undef _CL_HAVE_FUNCTION_MMAP */
37 #define _CL_HAVE_FUNCTION_STRLWR 1
38 /* #undef _CL_HAVE_FUNCTION_STRTOLL */
39 #define _CL_HAVE_FUNCTION_STRUPR 1
40 /* #undef _CL_HAVE_FUNCTION_GETPAGESIZE */
41 /* #undef _CL_HAVE_FUNCTION_USLEEP */
42 #define _CL_HAVE_FUNCTION_SLEEP 1
44 #define CL_MAX_PATH 4096
45 //this is the max filename... for now its just the same,
46 //but this could change, so we use a different name
47 #define CL_MAX_NAME CL_MAX_PATH
48 //this used to be CL_MAX_NAME * 32, but as Alex Hudson points out, this could come to be 128kb.
49 //the above logic for CL_MAX_NAME should be correct enough to handle all file names
50 #define CL_MAX_DIR CL_MAX_PATH
52 /* undef _O_RANDOM _O_RANDOM */
53 /* undef _O_BINARY _O_BINARY */
54 /* undef _S_IREAD _S_IREAD */
55 /* undef _S_IWRITE _S_IWRITE */
56 /* #undef _timeb */
58 #define _ILONG(x) x ## L
59 #define _ILONGLONG(x) x ## LL
61 #define fileStat _stati64
62 #define cl_stat_t _stati64
63 #define fileSize _filelengthi64
64 #define fileSeek _lseeki64
65 #define fileTell _telli64
66 #define fileHandleStat _fstati64
67 #define _realpath(rel,abs) ::_fullpath(abs,rel,CL_MAX_PATH)
68 #define _rename rename
69 /* undef _close _close */
70 /* undef _read _read */
71 #define _cl_open _open
72 /* undef _write _write */
73 /* undef _snprintf _snprintf */
74 /* undef _mkdir _mkdir */
75 /* undef _unlink _unlink */
76 /* undef _ftime _ftime */
77 #define SLEEPFUNCTION Sleep
79 /* CMake will determine these specifics. Things like bugs, etc */
81 /* Does not support new float byte<->float conversions */
82 /* #undef _CL_HAVE_NO_FLOAT_BYTE */
84 /* Define if recursive pthread mutexes are available */
85 /* #undef _CL_HAVE_PTHREAD_MUTEX_RECURSIVE */
87 /** define if you would like to force clucene to use the internal
88 * character functions.
89 * Tests may display unpredictable behaviour if this is not defined.
91 #ifndef LUCENE_USE_INTERNAL_CHAR_FUNCTIONS
92 #define LUCENE_USE_INTERNAL_CHAR_FUNCTIONS 1
93 #endif
95 /** fix ansi for loop scope */
96 #if 1==0
97 #define for if (0); else for
98 #endif
101 /* Compiler oddities */
103 //not sure why, but cygwin reports _S_IREAD, but doesn't actually work...
104 //TODO: make this work properly (this bit shouldn't be necessary)
105 #ifdef __CYGWIN__
106 #define _S_IREAD 0333
107 #define _S_IWRITE 0333
108 #endif
110 #ifdef __BORLANDC__ //borland compiler
111 #define O_RANDOM 0
112 #endif
114 #endif