1 #ifndef HUNSPELL_CONFIG_H 2 #define HUNSPELL_CONFIG_H 3 4 /* Definitions shared between Linux, Mac OS X, and Windows. */ 5 #define HAVE_ALLOCA 1 6 #define HAVE_BUILTIN_EXPECT 1 7 #define HAVE_FCNTL_H 1 8 #define HAVE_FWPRINTF 1 9 #define HAVE_GETCWD 1 10 #define HAVE_GETPAGESIZE 1 11 #define HAVE_INTMAX_T 1 12 #define HAVE_INTTYPES_H 1 13 #define HAVE_INTTYPES_H_WITH_UINTMAX 1 14 #define HAVE_LIMITS_H 1 15 #define HAVE_LOCALE_H 1 16 #define HAVE_LONG_LONG_INT 1 17 #define HAVE_MEMCHR 1 18 #define HAVE_MEMORY_H 1 19 #define HAVE_PTHREAD_MUTEX_RECURSIVE 1 20 #define HAVE_PTHREAD_RWLOCK 1 21 #define HAVE_PUTENV 1 22 #define HAVE_SETLOCALE 1 23 #define STDC_HEADERS 1 24 #define HAVE_SNPRINTF 1 25 #define HAVE_STDDEF_H 1 26 #define HAVE_STDINT_H 1 27 #define HAVE_STDINT_H_WITH_UINTMAX 1 28 #define HAVE_STDLIB_H 1 29 #define HAVE_STRCASECMP 1 30 #define HAVE_STRCHR 1 31 #define HAVE_STRDUP 1 32 #define HAVE_STRSTR 1 33 #define HAVE_STRING_H 1 34 #define HAVE_STRINGS_H 1 35 #define HAVE_STRTOUL 1 36 #define HAVE_SYS_PARAM_H 1 37 #define HAVE_SYS_STAT_H 1 38 #define HAVE_SYS_TYPES_H 1 39 #define HAVE_TSEARCH 1 40 #define HAVE_UINTMAX_T 1 41 #define HAVE_UNISTD_H 1 42 #define HAVE_UNSIGNED_LONG_LONG_INT 1 43 #define HAVE_VISIBILITY 1 44 #define HAVE_WCHAR_T 1 45 #define HAVE_WCSLEN 1 46 #define HAVE_WINT_T 1 47 #define INTDIV0_RAISES_SIGFPE 1 48 #define USE_POSIX_THREADS 1 49 50 /* Enable extensions on AIX 3, Interix. */ 51 #ifndef _ALL_SOURCE 52 # define _ALL_SOURCE 1 53 #endif 54 /* Enable GNU extensions on systems that have them. */ 55 #ifndef _GNU_SOURCE 56 # define _GNU_SOURCE 1 57 #endif 58 /* Enable threading extensions on Solaris. */ 59 #ifndef _POSIX_PTHREAD_SEMANTICS 60 # define _POSIX_PTHREAD_SEMANTICS 1 61 #endif 62 /* Enable extensions on HP NonStop. */ 63 #ifndef _TANDEM_SOURCE 64 # define _TANDEM_SOURCE 1 65 #endif 66 /* Enable general extensions on Solaris. */ 67 #ifndef __EXTENSIONS__ 68 # define __EXTENSIONS__ 1 69 #endif 70 71 #define __libc_lock_t gl_lock_t 72 #define __libc_lock_define gl_lock_define 73 #define __libc_lock_define_initialized gl_lock_define_initialized 74 #define __libc_lock_init gl_lock_init 75 #define __libc_lock_lock gl_lock_lock 76 #define __libc_lock_unlock gl_lock_unlock 77 #define __libc_lock_recursive_t gl_recursive_lock_t 78 #define __libc_lock_define_recursive gl_recursive_lock_define 79 #define __libc_lock_define_initialized_recursive gl_recursive_lock_define_initialized 80 #define __libc_lock_init_recursive gl_recursive_lock_init 81 #define __libc_lock_lock_recursive gl_recursive_lock_lock 82 #define __libc_lock_unlock_recursive gl_recursive_lock_unlock 83 #define glthread_in_use libintl_thread_in_use 84 #define glthread_lock_init libintl_lock_init 85 #define glthread_lock_lock libintl_lock_lock 86 #define glthread_lock_unlock libintl_lock_unlock 87 #define glthread_lock_destroy libintl_lock_destroy 88 #define glthread_rwlock_init libintl_rwlock_init 89 #define glthread_rwlock_rdlock libintl_rwlock_rdlock 90 #define glthread_rwlock_wrlock libintl_rwlock_wrlock 91 #define glthread_rwlock_unlock libintl_rwlock_unlock 92 #define glthread_rwlock_destroy libintl_rwlock_destroy 93 #define glthread_recursive_lock_init libintl_recursive_lock_init 94 #define glthread_recursive_lock_lock libintl_recursive_lock_lock 95 #define glthread_recursive_lock_unlock libintl_recursive_lock_unlock 96 #define glthread_recursive_lock_destroy libintl_recursive_lock_destroy 97 #define glthread_once libintl_once 98 #define glthread_once_call libintl_once_call 99 #define glthread_once_singlethreaded libintl_once_singlethreaded 100 101 /* Definitions shared between Linux and Mac OS X. */ 102 #ifdef __unix__ 103 #define HAVE_ALLOCA_H 1 104 #define HAVE_ASPRINTF 1 105 #define HAVE_DECL_FEOF_UNLOCKED 1 106 #define HAVE_DECL_GETC_UNLOCKED 1 107 #define HAVE_DECL__SNPRINTF 0 108 #define HAVE_DECL__SNWPRINTF 0 109 #define HAVE_DLFCN_H 1 110 #define HAVE_GETEGID 1 111 #define HAVE_GETEUID 1 112 #define HAVE_GETGID 1 113 #define HAVE_GETUID 1 114 #define HAVE_ICONV 1 115 #define HAVE_LANGINFO_CODESET 1 116 #define HAVE_LC_MESSAGES 1 117 #define HAVE_MMAP 1 118 #define HAVE_MUNMAP 1 119 #define HAVE_NL_LOCALE_NAME 1 120 #define HAVE_POSIX_PRINTF 1 121 #define HAVE_SETENV 1 122 #define HAVE_STPCPY 1 123 #define ICONV_CONST 124 #endif 125 126 /* Definitions shared between Linux and Windows. */ 127 #if (defined __linux || defined _WIN32) 128 #define USE_POSIX_THREADS_WEAK 1 129 #endif 130 131 /* Definitions specific to Linux. */ 132 #ifdef __linux 133 #define HAVE_ARGZ_COUNT 1 134 #define HAVE_ARGZ_H 1 135 #define HAVE_ARGZ_NEXT 1 136 #define HAVE_ARGZ_STRINGIFY 1 137 #define HAVE_DECL_FGETS_UNLOCKED 1 138 #define HAVE_ERROR_H 1 139 #define HAVE_LIBINTL_H 1 140 #define HAVE_MEMPCPY 1 141 #define HAVE___FSETLOCKING 1 142 #endif 143 144 /* Definitions specific to Mac OS X. */ 145 #ifdef __APPLE__ 146 #define HAVE_CFLOCALECOPYCURRENT 1 147 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1 148 #define HAVE_DECL_FGETS_UNLOCKED 0 149 #endif 150 151 /* Definitions specific to Windows. */ 152 #ifdef _WIN32 153 #define HAVE_DECL_FEOF_UNLOCKED 0 154 #define HAVE_DECL_FGETS_UNLOCKED 0 155 #define HAVE_DECL_GETC_UNLOCKED 0 156 #define HAVE_DECL__SNPRINTF 1 157 #define HAVE_DECL__SNWPRINTF 1 158 #endif 159 160 #endif 161