Warning, /graphics/krita/3rdparty/ext_gettext/0004-vcpkg-CMake-toolchain.patch is written in an unsupported language. File is not indexed.
0001 From a0dcf18117183c5bb58358c1f0ebad112ef8fd8b Mon Sep 17 00:00:00 2001 0002 From: "L. E. Segovia" <amy@amyspark.me> 0003 Date: Sun, 21 Feb 2021 11:49:39 +0000 0004 Subject: [PATCH 4/4] vcpkg CMake toolchain 0005 0006 Adapted from https://github.com/microsoft/vcpkg/tree/c84dfe7ddd6f3ba14ec9f4b1f2c577365175128b/ports/gettext 0007 --- 0008 CMakeLists.txt | 13 + 0009 gettext-runtime/CMakeLists.txt | 159 ++++ 0010 gettext-runtime/config.unix.h.in | 1009 +++++++++++++++++++++++ 0011 gettext-runtime/config.win32.h | 835 +++++++++++++++++++ 0012 gettext-runtime/intl/libgnuintl.win32.h | 467 +++++++++++ 0013 gettext-runtime/intl/libintl.rc | 38 - 0014 gettext-runtime/intl/libintl.rc.in | 38 + 0015 7 files changed, 2521 insertions(+), 38 deletions(-) 0016 create mode 100644 CMakeLists.txt 0017 create mode 100644 gettext-runtime/CMakeLists.txt 0018 create mode 100644 gettext-runtime/config.unix.h.in 0019 create mode 100644 gettext-runtime/config.win32.h 0020 create mode 100644 gettext-runtime/intl/libgnuintl.win32.h 0021 delete mode 100644 gettext-runtime/intl/libintl.rc 0022 create mode 100644 gettext-runtime/intl/libintl.rc.in 0023 0024 diff --git a/CMakeLists.txt b/CMakeLists.txt 0025 new file mode 100644 0026 index 0000000..340296a 0027 --- /dev/null 0028 +++ b/CMakeLists.txt 0029 @@ -0,0 +1,18 @@ 0030 +cmake_minimum_required(VERSION 3.5) 0031 + 0032 +project(gettext) 0033 + 0034 +set(PACKAGE_VERSION_MAJOR 0) 0035 +set(PACKAGE_VERSION_MINOR 19) 0036 +set(PACKAGE_VERSION_SUBMINOR 0) 0037 + 0038 +set(PACKAGE_VERSION_STRING "${PACKAGE_VERSION_MAJOR}.${PACKAGE_VERSION_MINOR}") 0039 + 0040 +add_definitions(-DPACKAGE_VERSION_MAJOR=${PACKAGE_VERSION_MAJOR} -DPACKAGE_VERSION_MINOR=${PACKAGE_VERSION_MINOR} -DPACKAGE_VERSION_SUBMINOR=${PACKAGE_VERSION_SUBMINOR} -DPACKAGE_VERSION_STRING="${PACKAGE_VERSION_STRING}") 0041 + 0042 +find_package(iconv REQUIRED) 0043 +include_directories(${Iconv_INCLUDE_DIRS}) 0044 +get_filename_component(Iconv_LIB_PATH ${Iconv_LIBRARY} DIRECTORY) 0045 +link_directories(${Iconv_LIB_PATH}) 0046 + 0047 +add_subdirectory(gettext-runtime) 0048 diff --git a/gettext-runtime/CMakeLists.txt b/gettext-runtime/CMakeLists.txt 0049 new file mode 100644 0050 index 0000000..8c6d22e 0051 --- /dev/null 0052 +++ b/gettext-runtime/CMakeLists.txt 0053 @@ -0,0 +1,162 @@ 0054 +cmake_minimum_required(VERSION 3.5) 0055 +project(gettext-runtime C) 0056 + 0057 +find_package(iconv REQUIRED) 0058 + 0059 +set(CMAKE_STATIC_LIBRARY_PREFIX) 0060 +set(CMAKE_SHARED_LIBRARY_PREFIX) 0061 + 0062 +if(WIN32) 0063 + set(HAVE_POSIX_PRINTF 0) 0064 + set(HAVE_SNPRINTF 0) 0065 + set(HAVE_ASPRINTF 0) 0066 + set(HAVE_WPRINTF 0) 0067 + set(HAVE_NAMELESS_LOCALES 0) 0068 + set(REPLACE_NEWLOCALE 0) 0069 + set(REPLACE_DUPLOCALE 0) 0070 + set(REPLACE_FREELOCALE 0) 0071 + set(HAVE_NEWLOCALE 0) 0072 + set(ICONV_CONST "") 0073 + include(CheckTypeSize) 0074 + check_type_size("long long int" HAVE_LONG_LONG_INT) 0075 + 0076 + configure_file(intl/libgnuintl.win32.h config/libgnuintl.h @ONLY) 0077 + configure_file(config.win32.h config/config.h @ONLY) 0078 +else() 0079 + set(HAVE_POSIX_PRINTF 1) 0080 + set(HAVE_SNPRINTF 1) 0081 + set(HAVE_ASPRINTF 1) 0082 + set(HAVE_WPRINTF 1) 0083 + if (CMAKE_SYSTEM_NAME STREQUAL "AIX") 0084 + set(HAVE_NAMELESS_LOCALES 1) 0085 + set(REPLACE_NEWLOCALE 1) 0086 + set(REPLACE_DUPLOCALE 1) 0087 + set(REPLACE_FREELOCALE 1) 0088 + else() 0089 + set(HAVE_NAMELESS_LOCALES 0) 0090 + set(REPLACE_NEWLOCALE 0) 0091 + set(REPLACE_DUPLOCALE 0) 0092 + set(REPLACE_FREELOCALE 0) 0093 + endif() 0094 + set(HAVE_NEWLOCALE 1) 0095 + if(NOT APPLE) 0096 + set(ICONV_CONST const) 0097 + else() 0098 + set(ICONV_CONST "") 0099 + endif() 0100 + add_definitions(-DHAVE_NEWLOCALE=1) 0101 + 0102 + set(CMAKE_THREAD_PREFER_PTHREAD TRUE) 0103 + set(THREADS_PREFER_PTHREAD_FLAG TRUE) 0104 + find_package(Threads REQUIRED) 0105 + if(NOT CMAKE_USE_PTHREADS_INIT) 0106 + message(FATAL_ERROR "Error: Only pthreads is currently supported.") 0107 + endif() 0108 + 0109 + include(CheckFunctionExists) 0110 + include(CheckIncludeFiles) 0111 + 0112 + if(APPLE) 0113 + set(HAVE_CFLOCALECOPYCURRENT 1) 0114 + set(HAVE_CFPREFERENCESCOPYAPPVALUE 1) 0115 + endif() 0116 + check_function_exists(dcgettext HAVE_DCGETTEXT) 0117 + check_include_files(features.h HAVE_FEATURES_H) 0118 + check_function_exists(gettext HAVE_GETTEXT) 0119 + check_include_files(mach-o/dyld.h HAVE_MACH_O_DYLD_H) 0120 + check_function_exists(mempcpy HAVE_MEMPCPY) 0121 + check_include_files(xlocale.h HAVE_XLOCALE_H) 0122 + 0123 + configure_file(intl/libgnuintl.in.h config/libgnuintl.h @ONLY) 0124 + configure_file(config.unix.h.in config/config.h @ONLY) 0125 +endif() 0126 + 0127 +if(NOT DISABLE_INSTALL_HEADERS) 0128 + install(FILES "${CMAKE_CURRENT_BINARY_DIR}/config/libgnuintl.h" DESTINATION include RENAME libintl.h) 0129 +endif() 0130 + 0131 +file(READ "${CMAKE_CURRENT_BINARY_DIR}/config/config.h" _contents) 0132 +if(NOT WIN32) 0133 + string(REPLACE "/* #undef HAVE_STPCPY */" "#define HAVE_STPCPY 1" _contents "${_contents}") 0134 +endif() 0135 +file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/config/config.h" "${_contents}") 0136 + 0137 +configure_file(intl/libintl.rc.in intl/libintl.rc @ONLY) 0138 + 0139 +FILE(GLOB SOURCES 0140 + "intl/bindtextdom.c" 0141 + "intl/dcgettext.c" 0142 + "intl/dcigettext.c" 0143 + "intl/dcngettext.c" 0144 + "intl/dgettext.c" 0145 + "intl/dngettext.c" 0146 + "intl/explodename.c" 0147 + "intl/finddomain.c" 0148 + "intl/gettext.c" 0149 + "intl/hash-string.c" 0150 + "intl/intl-compat.c" 0151 + "intl/l10nflist.c" 0152 + "intl/langprefs.c" 0153 + "intl/loadmsgcat.c" 0154 + "intl/localealias.c" 0155 + "intl/localename.c" 0156 + "intl/lock.c" 0157 + "intl/log.c" 0158 + "intl/ngettext.c" 0159 + "intl/osdep.c" 0160 + "intl/plural-exp.c" 0161 + "intl/plural.c" 0162 + "intl/printf.c" 0163 + "intl/relocatable.c" 0164 + "intl/textdomain.c" 0165 + "intl/version.c" 0166 + if (MSVC) 0167 + "intl/localcharset.c" 0168 + endif() 0169 + "${CMAKE_CURRENT_BINARY_DIR}/intl/libintl.rc" 0170 +) 0171 +if(NOT WIN32) 0172 + list(APPEND SOURCES "intl/setlocale.c") 0173 +endif() 0174 + 0175 +add_definitions(-DLOCALEDIR=\"${CMAKE_INSTALL_PREFIX}\") 0176 +add_definitions(-DLOCALE_ALIAS_PATH=\"${CMAKE_INSTALL_PREFIX}\") 0177 +add_definitions(-DLIBDIR=\"${CMAKE_INSTALL_PREFIX}\") 0178 +add_definitions(-DINSTALLDIR=\"${CMAKE_INSTALL_PREFIX}\") 0179 +if(BUILD_SHARED_LIBS) 0180 + add_definitions(-DBUILDING_DLL) 0181 +endif() 0182 +add_definitions("-DBUILDING_LIBINTL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY") 0183 + 0184 +add_definitions("-DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -DHAVE_ICONV -DHAVE_ICONV_H -D_CRT_SECURE_NO_WARNINGS") 0185 + 0186 +add_library(intl SHARED ${SOURCES}) 0187 +set_target_properties(intl PROPERTIES DEFINE_SYMBOL "libintl_EXPORTS") 0188 +target_link_libraries(intl PUBLIC iconv) 0189 + 0190 +if(MSVC) 0191 +set_target_properties(intl PROPERTIES OUTPUT_NAME "libintl") 0192 +endif(MSVC) 0193 + 0194 +target_include_directories(intl PUBLIC 0195 + $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/config> 0196 + $<INSTALL_INTERFACE:include> 0197 + ${ICONV_INCLUDE_DIR} 0198 +) 0199 + 0200 +if(APPLE) 0201 + find_library(COREFOUNDATION_LIBRARY CoreFoundation REQUIRED) 0202 + target_link_libraries(intl PRIVATE ${COREFOUNDATION_LIBRARY}) 0203 +endif() 0204 +if(NOT WIN32) 0205 + target_link_libraries(intl PRIVATE Threads::Threads) 0206 +endif() 0207 +if (WIN32) 0208 + target_link_libraries(intl PRIVATE kernel32.lib Advapi32.lib) 0209 +endif() 0210 + 0211 +install(TARGETS intl 0212 + RUNTIME DESTINATION bin 0213 + LIBRARY DESTINATION lib 0214 + ARCHIVE DESTINATION lib 0215 +) 0216 diff --git a/gettext-runtime/config.unix.h.in b/gettext-runtime/config.unix.h.in 0217 new file mode 100644 0218 index 0000000..51e5cf6 0219 --- /dev/null 0220 +++ b/gettext-runtime/config.unix.h.in 0221 @@ -0,0 +1,1009 @@ 0222 +/* config.h. Generated from config.h.in by configure. */ 0223 +/* config.h.in. Generated from configure.ac by autoheader. */ 0224 + 0225 +/* Define to the number of bits in type 'ptrdiff_t'. */ 0226 +#define BITSIZEOF_PTRDIFF_T sizeof(ptrdiff_t) 0227 + 0228 +/* Define to the number of bits in type 'sig_atomic_t'. */ 0229 +#define BITSIZEOF_SIG_ATOMIC_T 32 0230 + 0231 +/* Define to the number of bits in type 'size_t'. */ 0232 +#define BITSIZEOF_SIZE_T sizeof(size_t) 0233 + 0234 +/* Define to the number of bits in type 'wchar_t'. */ 0235 +#define BITSIZEOF_WCHAR_T 32 0236 + 0237 +/* Define to the number of bits in type 'wint_t'. */ 0238 +#define BITSIZEOF_WINT_T 32 0239 + 0240 +/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP 0241 + systems. This function is required for `alloca.c' support on those systems. 0242 + */ 0243 +/* #undef CRAY_STACKSEG_END */ 0244 + 0245 +/* Define if mono is the preferred C# implementation. */ 0246 +/* #undef CSHARP_CHOICE_MONO */ 0247 + 0248 +/* Define if pnet is the preferred C# implementation. */ 0249 +/* #undef CSHARP_CHOICE_PNET */ 0250 + 0251 +/* Define to 1 if using `alloca.c'. */ 0252 +/* #undef C_ALLOCA */ 0253 + 0254 +/* Define to 1 if // is a file system root distinct from /. */ 0255 +/* #undef DOUBLE_SLASH_IS_DISTINCT_ROOT */ 0256 + 0257 +/* Define to 1 if translation of program messages to the user's native 0258 + language is requested. */ 0259 +#define ENABLE_NLS 1 0260 + 0261 +/* Define to 1 if the package shall run at any location in the file system. */ 0262 +#define ENABLE_RELOCATABLE 1 0263 + 0264 +/* Define to 1 if realpath() can malloc memory, always gives an absolute path, 0265 + and handles trailing slash correctly. */ 0266 +/* #undef FUNC_REALPATH_WORKS */ 0267 + 0268 +/* Define if gettimeofday clobbers the localtime buffer. */ 0269 +/* #undef GETTIMEOFDAY_CLOBBERS_LOCALTIME */ 0270 + 0271 +/* Define this to 'void' or 'struct timezone' to match the system's 0272 + declaration of the second argument to gettimeofday. */ 0273 +#define GETTIMEOFDAY_TIMEZONE void 0274 + 0275 +/* Define to a C preprocessor expression that evaluates to 1 or 0, depending 0276 + whether the gnulib module canonicalize-lgpl shall be considered present. */ 0277 +#define GNULIB_CANONICALIZE_LGPL 1 0278 + 0279 +/* Define to a C preprocessor expression that evaluates to 1 or 0, depending 0280 + whether the gnulib module fscanf shall be considered present. */ 0281 +#define GNULIB_FSCANF 1 0282 + 0283 +/* Define to a C preprocessor expression that evaluates to 1 or 0, depending 0284 + whether the gnulib module fwriteerror shall be considered present. */ 0285 +#define GNULIB_FWRITEERROR 1 0286 + 0287 +/* Define to a C preprocessor expression that evaluates to 1 or 0, depending 0288 + whether the gnulib module lock shall be considered present. */ 0289 +#define GNULIB_LOCK 1 0290 + 0291 +/* Define to a C preprocessor expression that evaluates to 1 or 0, depending 0292 + whether the gnulib module scanf shall be considered present. */ 0293 +#define GNULIB_SCANF 1 0294 + 0295 +/* Define to a C preprocessor expression that evaluates to 1 or 0, depending 0296 + whether the gnulib module sigpipe shall be considered present. */ 0297 +#define GNULIB_SIGPIPE 1 0298 + 0299 +/* Define to a C preprocessor expression that evaluates to 1 or 0, depending 0300 + whether the gnulib module strerror shall be considered present. */ 0301 +#define GNULIB_STRERROR 1 0302 + 0303 +/* Define to a C preprocessor expression that evaluates to 1 or 0, depending 0304 + whether the gnulib module unistr/u8-mbtoucr shall be considered present. */ 0305 +#define GNULIB_UNISTR_U8_MBTOUCR 1 0306 + 0307 +/* Define to a C preprocessor expression that evaluates to 1 or 0, depending 0308 + whether the gnulib module unistr/u8-uctomb shall be considered present. */ 0309 +#define GNULIB_UNISTR_U8_UCTOMB 1 0310 + 0311 +/* Define to 1 if you have `alloca', as a function or macro. */ 0312 +#define HAVE_ALLOCA 1 0313 + 0314 +/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix). 0315 + */ 0316 +#define HAVE_ALLOCA_H 1 0317 + 0318 +/* Define to 1 if you have the `argz_count' function. */ 0319 +/* #undef HAVE_ARGZ_COUNT */ 0320 + 0321 +/* Define to 1 if you have the <argz.h> header file. */ 0322 +/* #undef HAVE_ARGZ_H */ 0323 + 0324 +/* Define to 1 if you have the `argz_next' function. */ 0325 +/* #undef HAVE_ARGZ_NEXT */ 0326 + 0327 +/* Define to 1 if you have the `argz_stringify' function. */ 0328 +/* #undef HAVE_ARGZ_STRINGIFY */ 0329 + 0330 +/* Define to 1 if you have the `asprintf' function. */ 0331 +#define HAVE_ASPRINTF 1 0332 + 0333 +/* Define to 1 if you have the `atexit' function. */ 0334 +#define HAVE_ATEXIT 1 0335 + 0336 +/* Define to 1 if you have the <bp-sym.h> header file. */ 0337 +/* #undef HAVE_BP_SYM_H */ 0338 + 0339 +/* Define to 1 if the compiler understands __builtin_expect. */ 0340 +#define HAVE_BUILTIN_EXPECT 1 0341 + 0342 +/* Define to 1 if you have the `canonicalize_file_name' function. */ 0343 +/* #undef HAVE_CANONICALIZE_FILE_NAME */ 0344 + 0345 +/* Define to 1 if you have the Mac OS X function CFLocaleCopyCurrent in the 0346 + CoreFoundation framework. */ 0347 +#cmakedefine HAVE_CFLOCALECOPYCURRENT 1 0348 + 0349 +/* Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in 0350 + the CoreFoundation framework. */ 0351 +#cmakedefine HAVE_CFPREFERENCESCOPYAPPVALUE 1 0352 + 0353 +/* Define if the GNU dcgettext() function is already present or preinstalled. 0354 + */ 0355 +#cmakedefine HAVE_DCGETTEXT 1 0356 + 0357 +/* Define to 1 if you have the declaration of `clearerr_unlocked', and to 0 if 0358 + you don't. */ 0359 +#define HAVE_DECL_CLEARERR_UNLOCKED 1 0360 + 0361 +/* Define to 1 if you have the declaration of `feof_unlocked', and to 0 if you 0362 + don't. */ 0363 +#define HAVE_DECL_FEOF_UNLOCKED 1 0364 + 0365 +/* Define to 1 if you have the declaration of `ferror_unlocked', and to 0 if 0366 + you don't. */ 0367 +#define HAVE_DECL_FERROR_UNLOCKED 1 0368 + 0369 +/* Define to 1 if you have the declaration of `fflush_unlocked', and to 0 if 0370 + you don't. */ 0371 +#define HAVE_DECL_FFLUSH_UNLOCKED 0 0372 + 0373 +/* Define to 1 if you have the declaration of `fgets_unlocked', and to 0 if 0374 + you don't. */ 0375 +#define HAVE_DECL_FGETS_UNLOCKED 0 0376 + 0377 +/* Define to 1 if you have the declaration of `fputc_unlocked', and to 0 if 0378 + you don't. */ 0379 +#define HAVE_DECL_FPUTC_UNLOCKED 0 0380 + 0381 +/* Define to 1 if you have the declaration of `fputs_unlocked', and to 0 if 0382 + you don't. */ 0383 +#define HAVE_DECL_FPUTS_UNLOCKED 0 0384 + 0385 +/* Define to 1 if you have the declaration of `fread_unlocked', and to 0 if 0386 + you don't. */ 0387 +#define HAVE_DECL_FREAD_UNLOCKED 0 0388 + 0389 +/* Define to 1 if you have the declaration of `fwrite_unlocked', and to 0 if 0390 + you don't. */ 0391 +#define HAVE_DECL_FWRITE_UNLOCKED 0 0392 + 0393 +/* Define to 1 if you have the declaration of `getchar_unlocked', and to 0 if 0394 + you don't. */ 0395 +#define HAVE_DECL_GETCHAR_UNLOCKED 1 0396 + 0397 +/* Define to 1 if you have the declaration of `getc_unlocked', and to 0 if you 0398 + don't. */ 0399 +#define HAVE_DECL_GETC_UNLOCKED 1 0400 + 0401 +/* Define to 1 if you have the declaration of `getenv', and to 0 if you don't. 0402 + */ 0403 +#define HAVE_DECL_GETENV 1 0404 + 0405 +/* Define to 1 if you have the declaration of `iswblank', and to 0 if you 0406 + don't. */ 0407 +#define HAVE_DECL_ISWBLANK 1 0408 + 0409 +/* Define to 1 if you have the declaration of `mbrtowc', and to 0 if you 0410 + don't. */ 0411 +/* #undef HAVE_DECL_MBRTOWC */ 0412 + 0413 +/* Define to 1 if you have the declaration of `mbsinit', and to 0 if you 0414 + don't. */ 0415 +/* #undef HAVE_DECL_MBSINIT */ 0416 + 0417 +/* Define to 1 if you have the declaration of `program_invocation_name', and 0418 + to 0 if you don't. */ 0419 +#define HAVE_DECL_PROGRAM_INVOCATION_NAME 0 0420 + 0421 +/* Define to 1 if you have the declaration of `program_invocation_short_name', 0422 + and to 0 if you don't. */ 0423 +#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 0 0424 + 0425 +/* Define to 1 if you have the declaration of `putchar_unlocked', and to 0 if 0426 + you don't. */ 0427 +#define HAVE_DECL_PUTCHAR_UNLOCKED 1 0428 + 0429 +/* Define to 1 if you have the declaration of `putc_unlocked', and to 0 if you 0430 + don't. */ 0431 +#define HAVE_DECL_PUTC_UNLOCKED 1 0432 + 0433 +/* Define to 1 if you have the declaration of `setenv', and to 0 if you don't. 0434 + */ 0435 +#define HAVE_DECL_SETENV 1 0436 + 0437 +/* Define to 1 if you have the declaration of `strerror_r', and to 0 if you 0438 + don't. */ 0439 +#define HAVE_DECL_STRERROR_R 1 0440 + 0441 +/* Define to 1 if you have the declaration of `strnlen', and to 0 if you 0442 + don't. */ 0443 +#define HAVE_DECL_STRNLEN 1 0444 + 0445 +/* Define to 1 if you have the declaration of `towlower', and to 0 if you 0446 + don't. */ 0447 +/* #undef HAVE_DECL_TOWLOWER */ 0448 + 0449 +/* Define to 1 if you have the declaration of `wcwidth', and to 0 if you 0450 + don't. */ 0451 +#define HAVE_DECL_WCWIDTH 1 0452 + 0453 +/* Define to 1 if you have the declaration of `_snprintf', and to 0 if you 0454 + don't. */ 0455 +#define HAVE_DECL__SNPRINTF 0 0456 + 0457 +/* Define to 1 if you have the declaration of `_snwprintf', and to 0 if you 0458 + don't. */ 0459 +#define HAVE_DECL__SNWPRINTF 0 0460 + 0461 +/* Define to 1 if you have the <dlfcn.h> header file. */ 0462 +#define HAVE_DLFCN_H 1 0463 + 0464 +/* Define if you have the declaration of environ. */ 0465 +/* #undef HAVE_ENVIRON_DECL */ 0466 + 0467 +/* Define to 1 if you have the <features.h> header file. */ 0468 +#cmakedefine HAVE_FEATURES_H 1 0469 + 0470 +/* Define to 1 if you have the `fwprintf' function. */ 0471 +#define HAVE_FWPRINTF 1 0472 + 0473 +/* Define to 1 if you have the `getcwd' function. */ 0474 +#define HAVE_GETCWD 1 0475 + 0476 +/* Define to 1 if you have the `getegid' function. */ 0477 +#define HAVE_GETEGID 1 0478 + 0479 +/* Define to 1 if you have the `geteuid' function. */ 0480 +#define HAVE_GETEUID 1 0481 + 0482 +/* Define to 1 if you have the `getgid' function. */ 0483 +#define HAVE_GETGID 1 0484 + 0485 +/* Define to 1 if you have the <getopt.h> header file. */ 0486 +#define HAVE_GETOPT_H 1 0487 + 0488 +/* Define to 1 if you have the `getopt_long_only' function. */ 0489 +#define HAVE_GETOPT_LONG_ONLY 1 0490 + 0491 +/* Define to 1 if you have the `getpagesize' function. */ 0492 +#define HAVE_GETPAGESIZE 1 0493 + 0494 +/* Define if the GNU gettext() function is already present or preinstalled. */ 0495 +#cmakedefine HAVE_GETTEXT 1 0496 + 0497 +/* Define to 1 if you have the `gettimeofday' function. */ 0498 +#define HAVE_GETTIMEOFDAY 1 0499 + 0500 +/* Define to 1 if you have the `getuid' function. */ 0501 +#define HAVE_GETUID 1 0502 + 0503 +/* Define if you have the iconv() function and it works. */ 0504 +#define HAVE_ICONV 1 0505 + 0506 +/* Define to 1 if you have the <iconv.h> header file. */ 0507 +#define HAVE_ICONV_H 1 0508 + 0509 +/* Define to 1 if the compiler supports one of the keywords 'inline', 0510 + '__inline__', '__inline' and effectively inlines functions marked as such. 0511 + */ 0512 +#define HAVE_INLINE 1 0513 + 0514 +/* Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>. */ 0515 +#define HAVE_INTMAX_T 1 0516 + 0517 +/* Define to 1 if you have the <inttypes.h> header file. */ 0518 +#define HAVE_INTTYPES_H 1 0519 + 0520 +/* Define if <inttypes.h> exists, doesn't clash with <sys/types.h>, and 0521 + declares uintmax_t. */ 0522 +#define HAVE_INTTYPES_H_WITH_UINTMAX 1 0523 + 0524 +/* Define to 1 if you have the `iswblank' function. */ 0525 +#define HAVE_ISWBLANK 1 0526 + 0527 +/* Define to 1 if you have the `iswcntrl' function. */ 0528 +#define HAVE_ISWCNTRL 1 0529 + 0530 +/* Define if you have <langinfo.h> and nl_langinfo(CODESET). */ 0531 +#define HAVE_LANGINFO_CODESET 1 0532 + 0533 +/* Define if your <locale.h> file defines LC_MESSAGES. */ 0534 +#define HAVE_LC_MESSAGES 1 0535 + 0536 +/* Define to 1 if you have the <limits.h> header file. */ 0537 +#define HAVE_LIMITS_H 1 0538 + 0539 +/* Define to 1 if the system has the type 'long long int'. */ 0540 +#define HAVE_LONG_LONG_INT 1 0541 + 0542 +/* Define to 1 if you have the `lstat' function. */ 0543 +#define HAVE_LSTAT 1 0544 + 0545 +/* Define to 1 if you have the <mach-o/dyld.h> header file. */ 0546 +#cmakedefine HAVE_MACH_O_DYLD_H 1 0547 + 0548 +/* Define to 1 if mmap()'s MAP_ANONYMOUS flag is available after including 0549 + config.h and <sys/mman.h>. */ 0550 +#define HAVE_MAP_ANONYMOUS 1 0551 + 0552 +/* Define to 1 if you have the `mbrtowc' function. */ 0553 +#define HAVE_MBRTOWC 1 0554 + 0555 +/* Define to 1 if you have the `mbsinit' function. */ 0556 +#define HAVE_MBSINIT 1 0557 + 0558 +/* Define to 1 if you have the `mbslen' function. */ 0559 +/* #undef HAVE_MBSLEN */ 0560 + 0561 +/* Define to 1 if <wchar.h> declares mbstate_t. */ 0562 +#define HAVE_MBSTATE_T 1 0563 + 0564 +/* Define to 1 if you have the `memmove' function. */ 0565 +#define HAVE_MEMMOVE 1 0566 + 0567 +/* Define to 1 if you have the <memory.h> header file. */ 0568 +#define HAVE_MEMORY_H 1 0569 + 0570 +/* Define to 1 if you have the `mempcpy' function. */ 0571 +#cmakedefine HAVE_MEMPCPY 1 0572 + 0573 +/* Define to 1 if you have a working `mmap' system call. */ 0574 +#define HAVE_MMAP 1 0575 + 0576 +/* Define to 1 if you have the `mprotect' function. */ 0577 +#define HAVE_MPROTECT 1 0578 + 0579 +/* Define to 1 on MSVC platforms that have the "invalid parameter handler" 0580 + concept. */ 0581 +/* #undef HAVE_MSVC_INVALID_PARAMETER_HANDLER */ 0582 + 0583 +/* Define to 1 if you have the `munmap' function. */ 0584 +#define HAVE_MUNMAP 1 0585 + 0586 +/* Define to 1 if you have the `newlocale' function. */ 0587 +#cmakedefine HAVE_NEWLOCALE 1 0588 + 0589 +/* Define if your printf() function supports format strings with positions. */ 0590 +#define HAVE_POSIX_PRINTF 1 0591 + 0592 +/* Define if the <pthread.h> defines PTHREAD_MUTEX_RECURSIVE. */ 0593 +#define HAVE_PTHREAD_MUTEX_RECURSIVE 1 0594 + 0595 +/* Define if the POSIX multithreading library has read/write locks. */ 0596 +#define HAVE_PTHREAD_RWLOCK 1 0597 + 0598 +/* Define to 1 if you have the `putenv' function. */ 0599 +#define HAVE_PUTENV 1 0600 + 0601 +/* Define to 1 if you have the `raise' function. */ 0602 +#define HAVE_RAISE 1 0603 + 0604 +/* Define to 1 if you have the `readlink' function. */ 0605 +#define HAVE_READLINK 1 0606 + 0607 +/* Define to 1 if you have the `readlinkat' function. */ 0608 +#define HAVE_READLINKAT 1 0609 + 0610 +/* Define to 1 if you have the `realpath' function. */ 0611 +#define HAVE_REALPATH 1 0612 + 0613 +/* Define to 1 if you have the <search.h> header file. */ 0614 +#define HAVE_SEARCH_H 1 0615 + 0616 +/* Define to 1 if you have the `setenv' function. */ 0617 +#define HAVE_SETENV 1 0618 + 0619 +/* Define to 1 if you have the `setlocale' function. */ 0620 +#define HAVE_SETLOCALE 1 0621 + 0622 +/* Define to 1 if 'sig_atomic_t' is a signed integer type. */ 0623 +/* #undef HAVE_SIGNED_SIG_ATOMIC_T */ 0624 + 0625 +/* Define to 1 if 'wchar_t' is a signed integer type. */ 0626 +/* #undef HAVE_SIGNED_WCHAR_T */ 0627 + 0628 +/* Define to 1 if 'wint_t' is a signed integer type. */ 0629 +/* #undef HAVE_SIGNED_WINT_T */ 0630 + 0631 +/* Define to 1 if the system has the type `sigset_t'. */ 0632 +#define HAVE_SIGSET_T 1 0633 + 0634 +/* Define to 1 if you have the `snprintf' function. */ 0635 +#define HAVE_SNPRINTF 1 0636 + 0637 +/* Define to 1 if you have the <stddef.h> header file. */ 0638 +#define HAVE_STDDEF_H 1 0639 + 0640 +/* Define to 1 if you have the <stdint.h> header file. */ 0641 +#define HAVE_STDINT_H 1 0642 + 0643 +/* Define if <stdint.h> exists, doesn't clash with <sys/types.h>, and declares 0644 + uintmax_t. */ 0645 +#define HAVE_STDINT_H_WITH_UINTMAX 1 0646 + 0647 +/* Define to 1 if you have the <stdlib.h> header file. */ 0648 +#define HAVE_STDLIB_H 1 0649 + 0650 +/* Define to 1 if you have the `stpcpy' function. */ 0651 +#define HAVE_STPCPY 1 0652 + 0653 +/* Define to 1 if you have the `strcasecmp' function. */ 0654 +#define HAVE_STRCASECMP 1 0655 + 0656 +/* Define to 1 if you have the `strdup' function. */ 0657 +#define HAVE_STRDUP 1 0658 + 0659 +/* Define to 1 if you have the `strerror_r' function. */ 0660 +#define HAVE_STRERROR_R 1 0661 + 0662 +/* Define to 1 if you have the <strings.h> header file. */ 0663 +#define HAVE_STRINGS_H 1 0664 + 0665 +/* Define to 1 if you have the <string.h> header file. */ 0666 +#define HAVE_STRING_H 1 0667 + 0668 +/* Define to 1 if you have the `strnlen' function. */ 0669 +#define HAVE_STRNLEN 1 0670 + 0671 +/* Define to 1 if you have the `strtoul' function. */ 0672 +#define HAVE_STRTOUL 1 0673 + 0674 +/* Define to 1 if you have the `symlink' function. */ 0675 +#define HAVE_SYMLINK 1 0676 + 0677 +/* Define to 1 if you have the <sys/bitypes.h> header file. */ 0678 +/* #undef HAVE_SYS_BITYPES_H */ 0679 + 0680 +/* Define to 1 if you have the <sys/inttypes.h> header file. */ 0681 +/* #undef HAVE_SYS_INTTYPES_H */ 0682 + 0683 +/* Define to 1 if you have the <sys/mman.h> header file. */ 0684 +#define HAVE_SYS_MMAN_H 1 0685 + 0686 +/* Define to 1 if you have the <sys/param.h> header file. */ 0687 +#define HAVE_SYS_PARAM_H 1 0688 + 0689 +/* Define to 1 if you have the <sys/socket.h> header file. */ 0690 +#define HAVE_SYS_SOCKET_H 1 0691 + 0692 +/* Define to 1 if you have the <sys/stat.h> header file. */ 0693 +#define HAVE_SYS_STAT_H 1 0694 + 0695 +/* Define to 1 if you have the <sys/timeb.h> header file. */ 0696 +/* #undef HAVE_SYS_TIMEB_H */ 0697 + 0698 +/* Define to 1 if you have the <sys/time.h> header file. */ 0699 +#define HAVE_SYS_TIME_H 1 0700 + 0701 +/* Define to 1 if you have the <sys/types.h> header file. */ 0702 +#define HAVE_SYS_TYPES_H 1 0703 + 0704 +/* Define to 1 if you have the `towlower' function. */ 0705 +#define HAVE_TOWLOWER 1 0706 + 0707 +/* Define to 1 if you have the `tsearch' function. */ 0708 +#define HAVE_TSEARCH 1 0709 + 0710 +/* Define if you have the 'uintmax_t' type in <stdint.h> or <inttypes.h>. */ 0711 +#define HAVE_UINTMAX_T 1 0712 + 0713 +/* Define to 1 if you have the <unistd.h> header file. */ 0714 +#define HAVE_UNISTD_H 1 0715 + 0716 +/* Define to 1 if the system has the type 'unsigned long long int'. */ 0717 +#define HAVE_UNSIGNED_LONG_LONG_INT 1 0718 + 0719 +/* Define to 1 if you have the `uselocale' function. */ 0720 +#define HAVE_USELOCALE 1 0721 + 0722 +/* Define to 1 or 0, depending whether the compiler supports simple visibility 0723 + declarations. */ 0724 +#define HAVE_VISIBILITY 1 0725 + 0726 +/* Define to 1 if you have the <wchar.h> header file. */ 0727 +#define HAVE_WCHAR_H 1 0728 + 0729 +/* Define if you have the 'wchar_t' type. */ 0730 +#define HAVE_WCHAR_T 1 0731 + 0732 +/* Define to 1 if you have the `wcrtomb' function. */ 0733 +#define HAVE_WCRTOMB 1 0734 + 0735 +/* Define to 1 if you have the `wcslen' function. */ 0736 +#define HAVE_WCSLEN 1 0737 + 0738 +/* Define to 1 if you have the `wcsnlen' function. */ 0739 +#define HAVE_WCSNLEN 1 0740 + 0741 +/* Define to 1 if you have the <wctype.h> header file. */ 0742 +#define HAVE_WCTYPE_H 1 0743 + 0744 +/* Define to 1 if you have the `wcwidth' function. */ 0745 +#define HAVE_WCWIDTH 1 0746 + 0747 +/* Define to 1 if you have the <winsock2.h> header file. */ 0748 +/* #undef HAVE_WINSOCK2_H */ 0749 + 0750 +/* Define if you have the 'wint_t' type. */ 0751 +#define HAVE_WINT_T 1 0752 + 0753 +/* Define to 1 if O_NOATIME works. */ 0754 +#define HAVE_WORKING_O_NOATIME 0 0755 + 0756 +/* Define to 1 if O_NOFOLLOW works. */ 0757 +#define HAVE_WORKING_O_NOFOLLOW 1 0758 + 0759 +/* Define to 1 if you have the <xlocale.h> header file. */ 0760 +#cmakedefine HAVE_XLOCALE_H 1 0761 + 0762 +/* Define to 1 if the system has the type `_Bool'. */ 0763 +#define HAVE__BOOL 1 0764 + 0765 +/* Define to 1 if you have the `_ftime' function. */ 0766 +/* #undef HAVE__FTIME */ 0767 + 0768 +/* Define to 1 if you have the `_NSGetExecutablePath' function. */ 0769 +/* #undef HAVE__NSGETEXECUTABLEPATH */ 0770 + 0771 +/* Define to 1 if you have the `_set_invalid_parameter_handler' function. */ 0772 +/* #undef HAVE__SET_INVALID_PARAMETER_HANDLER */ 0773 + 0774 +/* Define to 1 if you have the `__fsetlocking' function. */ 0775 +/* #undef HAVE___FSETLOCKING */ 0776 + 0777 +/* Define as const if the declaration of iconv() needs const. */ 0778 +#define ICONV_CONST @ICONV_CONST@ 0779 + 0780 +/* Define to a symbolic name denoting the flavor of iconv_open() 0781 + implementation. */ 0782 +/* #undef ICONV_FLAVOR */ 0783 + 0784 +/* Define to the value of ${prefix}, as a string. */ 0785 +/* #define INSTALLPREFIX "/usr/local" */ 0786 + 0787 +/* Define if integer division by zero raises signal SIGFPE. */ 0788 +#define INTDIV0_RAISES_SIGFPE 0 0789 + 0790 +/* Define to 1 if 'lstat' dereferences a symlink specified with a trailing 0791 + slash. */ 0792 +/* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */ 0793 + 0794 +/* If malloc(0) is != NULL, define this to 1. Otherwise define this to 0. */ 0795 +#define MALLOC_0_IS_NONNULL 1 0796 + 0797 +/* Define to a substitute value for mmap()'s MAP_ANONYMOUS flag. */ 0798 +/* #undef MAP_ANONYMOUS */ 0799 + 0800 +/* Define if the mbrtowc function has the NULL pwc argument bug. */ 0801 +/* #undef MBRTOWC_NULL_ARG1_BUG */ 0802 + 0803 +/* Define if the mbrtowc function has the NULL string argument bug. */ 0804 +/* #undef MBRTOWC_NULL_ARG2_BUG */ 0805 + 0806 +/* Define if the mbrtowc function does not return 0 for a NUL character. */ 0807 +/* #undef MBRTOWC_NUL_RETVAL_BUG */ 0808 + 0809 +/* Define if the mbrtowc function returns a wrong return value. */ 0810 +/* #undef MBRTOWC_RETVAL_BUG */ 0811 + 0812 +/* Name of package */ 0813 +#define PACKAGE "gettext-runtime" 0814 + 0815 +/* Define to the address where bug reports for this package should be sent. */ 0816 +#define PACKAGE_BUGREPORT "" 0817 + 0818 +/* Define to the full name of this package. */ 0819 +#define PACKAGE_NAME "gettext-runtime" 0820 + 0821 +/* Define to the full name and version of this package. */ 0822 +#define PACKAGE_STRING "gettext-runtime 0.19" 0823 + 0824 +/* Define to the one symbol short name of this package. */ 0825 +#define PACKAGE_TARNAME "gettext-runtime" 0826 + 0827 +/* Define to the home page for this package. */ 0828 +#define PACKAGE_URL "" 0829 + 0830 +/* Define to the version of this package. */ 0831 +#define PACKAGE_VERSION "0.19" 0832 + 0833 +/* Define if <inttypes.h> exists and defines unusable PRI* macros. */ 0834 +/* #undef PRI_MACROS_BROKEN */ 0835 + 0836 +/* Define if the pthread_in_use() detection is hard. */ 0837 +/* #undef PTHREAD_IN_USE_DETECTION_HARD */ 0838 + 0839 +/* Define to l, ll, u, ul, ull, etc., as suitable for constants of type 0840 + 'ptrdiff_t'. */ 0841 +#define PTRDIFF_T_SUFFIX 0842 + 0843 +/* Define to 1 if readlink fails to recognize a trailing slash. */ 0844 +/* #undef READLINK_TRAILING_SLASH_BUG */ 0845 + 0846 +/* Define to 1 if stat needs help when passed a directory name with a trailing 0847 + slash */ 0848 +/* #undef REPLACE_FUNC_STAT_DIR */ 0849 + 0850 +/* Define to 1 if stat needs help when passed a file name with a trailing 0851 + slash */ 0852 +/* #undef REPLACE_FUNC_STAT_FILE */ 0853 + 0854 +/* Define to 1 if strerror(0) does not return a message implying success. */ 0855 +/* #undef REPLACE_STRERROR_0 */ 0856 + 0857 +/* Define to l, ll, u, ul, ull, etc., as suitable for constants of type 0858 + 'sig_atomic_t'. */ 0859 +#define SIG_ATOMIC_T_SUFFIX 0860 + 0861 +/* Define as the maximum value of type 'size_t', if the system doesn't define 0862 + it. */ 0863 +#ifndef SIZE_MAX 0864 +/* # undef SIZE_MAX */ 0865 +#endif 0866 + 0867 +/* Define to l, ll, u, ul, ull, etc., as suitable for constants of type 0868 + 'size_t'. */ 0869 +#define SIZE_T_SUFFIX ul 0870 + 0871 +/* If using the C implementation of alloca, define if you know the 0872 + direction of stack growth for your system; otherwise it will be 0873 + automatically deduced at runtime. 0874 + STACK_DIRECTION > 0 => grows toward higher addresses 0875 + STACK_DIRECTION < 0 => grows toward lower addresses 0876 + STACK_DIRECTION = 0 => direction of growth unknown */ 0877 +/* #undef STACK_DIRECTION */ 0878 + 0879 +/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */ 0880 +/* #undef STAT_MACROS_BROKEN */ 0881 + 0882 +/* Define to 1 if you have the ANSI C header files. */ 0883 +#define STDC_HEADERS 1 0884 + 0885 +/* Define to 1 if strerror_r returns char *. */ 0886 +/* #undef STRERROR_R_CHAR_P */ 0887 + 0888 +/* Define to the prefix of C symbols at the assembler and linker level, either 0889 + an underscore or empty. */ 0890 +#define USER_LABEL_PREFIX 0891 + 0892 +/* Define if the POSIX multithreading library can be used. */ 0893 +#define USE_POSIX_THREADS 1 0894 + 0895 +/* Define if references to the POSIX multithreading library should be made 0896 + weak. */ 0897 +/* #undef USE_POSIX_THREADS_WEAK */ 0898 + 0899 +/* Define if the GNU Pth multithreading library can be used. */ 0900 +/* #undef USE_PTH_THREADS */ 0901 + 0902 +/* Define if references to the GNU Pth multithreading library should be made 0903 + weak. */ 0904 +/* #undef USE_PTH_THREADS_WEAK */ 0905 + 0906 +/* Define if the old Solaris multithreading library can be used. */ 0907 +/* #undef USE_SOLARIS_THREADS */ 0908 + 0909 +/* Define if references to the old Solaris multithreading library should be 0910 + made weak. */ 0911 +/* #undef USE_SOLARIS_THREADS_WEAK */ 0912 + 0913 +/* Enable extensions on AIX 3, Interix. */ 0914 +#ifndef _ALL_SOURCE 0915 +# define _ALL_SOURCE 1 0916 +#endif 0917 +/* Enable general extensions on OS X. */ 0918 +#ifndef _DARWIN_C_SOURCE 0919 +# define _DARWIN_C_SOURCE 1 0920 +#endif 0921 +/* Enable GNU extensions on systems that have them. */ 0922 +#ifndef _GNU_SOURCE 0923 +# define _GNU_SOURCE 1 0924 +#endif 0925 +/* Enable threading extensions on Solaris. */ 0926 +#ifndef _POSIX_PTHREAD_SEMANTICS 0927 +# define _POSIX_PTHREAD_SEMANTICS 1 0928 +#endif 0929 +/* Enable extensions on HP NonStop. */ 0930 +#ifndef _TANDEM_SOURCE 0931 +# define _TANDEM_SOURCE 1 0932 +#endif 0933 +/* Enable X/Open extensions if necessary. HP-UX 11.11 defines 0934 + mbstate_t only if _XOPEN_SOURCE is defined to 500, regardless of 0935 + whether compiling with -Ae or -D_HPUX_SOURCE=1. */ 0936 +#ifndef _XOPEN_SOURCE 0937 +/* # undef _XOPEN_SOURCE */ 0938 +#endif 0939 +/* Enable general extensions on Solaris. */ 0940 +#ifndef __EXTENSIONS__ 0941 +# define __EXTENSIONS__ 1 0942 +#endif 0943 + 0944 + 0945 +/* Define to 1 if you want getc etc. to use unlocked I/O if available. 0946 + Unlocked I/O can improve performance in unithreaded apps, but it is not 0947 + safe for multithreaded apps. */ 0948 +#define USE_UNLOCKED_IO 1 0949 + 0950 +/* Define if the native Windows multithreading API can be used. */ 0951 +/* #undef USE_WINDOWS_THREADS */ 0952 + 0953 +/* Version number of package */ 0954 +#define VERSION "0.19" 0955 + 0956 +/* Define to l, ll, u, ul, ull, etc., as suitable for constants of type 0957 + 'wchar_t'. */ 0958 +#define WCHAR_T_SUFFIX 0959 + 0960 +/* Define to l, ll, u, ul, ull, etc., as suitable for constants of type 0961 + 'wint_t'. */ 0962 +#define WINT_T_SUFFIX 0963 + 0964 +/* Define when --enable-shared is used on mingw or Cygwin. */ 0965 +/* #undef WOE32DLL */ 0966 + 0967 +/* Enable large inode numbers on Mac OS X 10.5. */ 0968 +#define _DARWIN_USE_64_BIT_INODE 1 0969 + 0970 +/* Number of bits in a file offset, on hosts where this is settable. */ 0971 +/* #undef _FILE_OFFSET_BITS */ 0972 + 0973 +/* Define to 1 if Gnulib overrides 'struct stat' on Windows so that struct 0974 + stat.st_size becomes 64-bit. */ 0975 +/* #undef _GL_WINDOWS_64_BIT_ST_SIZE */ 0976 + 0977 +/* Define for large files, on AIX-style hosts. */ 0978 +/* #undef _LARGE_FILES */ 0979 + 0980 +/* Define to 1 on Solaris. */ 0981 +/* #undef _LCONV_C99 */ 0982 + 0983 +/* Define to 1 if on MINIX. */ 0984 +/* #undef _MINIX */ 0985 + 0986 +/* Define to 1 to make NetBSD features available. MINIX 3 needs this. */ 0987 +/* #undef _NETBSD_SOURCE */ 0988 + 0989 +/* The _Noreturn keyword of C11. */ 0990 +#if ! (defined _Noreturn \ 0991 + || (defined __STDC_VERSION__ && 201112 <= __STDC_VERSION__)) 0992 +# if (3 <= __GNUC__ || (__GNUC__ == 2 && 8 <= __GNUC_MINOR__) \ 0993 + || 0x5110 <= __SUNPRO_C) 0994 +# define _Noreturn __attribute__ ((__noreturn__)) 0995 +# elif defined _MSC_VER && 1200 <= _MSC_VER 0996 +# define _Noreturn __declspec (noreturn) 0997 +# else 0998 +# define _Noreturn 0999 +# endif 1000 +#endif 1001 + 1002 + 1003 +/* Define to 2 if the system does not provide POSIX.1 features except with 1004 + this defined. */ 1005 +/* #undef _POSIX_1_SOURCE */ 1006 + 1007 +/* Define to 1 if you need to in order for 'stat' and other things to work. */ 1008 +/* #undef _POSIX_SOURCE */ 1009 + 1010 +/* Define to rpl_ if the getopt replacement functions and variables should be 1011 + used. */ 1012 +#define __GETOPT_PREFIX rpl_ 1013 + 1014 +/* Please see the Gnulib manual for how to use these macros. 1015 + 1016 + Suppress extern inline with HP-UX cc, as it appears to be broken; see 1017 + <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>. 1018 + 1019 + Suppress extern inline with Sun C in standards-conformance mode, as it 1020 + mishandles inline functions that call each other. E.g., for 'inline void f 1021 + (void) { } inline void g (void) { f (); }', c99 incorrectly complains 1022 + 'reference to static identifier "f" in extern inline function'. 1023 + This bug was observed with Sun C 5.12 SunOS_i386 2011/11/16. 1024 + 1025 + Suppress the use of extern inline on problematic Apple configurations. 1026 + OS X 10.8 and earlier mishandle it; see, e.g., 1027 + <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>. 1028 + OS X 10.9 has a macro __header_inline indicating the bug is fixed for C and 1029 + for clang but remains for g++; see <http://trac.macports.org/ticket/41033>. 1030 + Perhaps Apple will fix this some day. */ 1031 +#if (defined __APPLE__ \ 1032 + && (defined __header_inline \ 1033 + ? (defined __cplusplus && defined __GNUC_STDC_INLINE__ \ 1034 + && ! defined __clang__) \ 1035 + : ((! defined _DONT_USE_CTYPE_INLINE_ \ 1036 + && (defined __GNUC__ || defined __cplusplus)) \ 1037 + || (defined _FORTIFY_SOURCE && 0 < _FORTIFY_SOURCE \ 1038 + && defined __GNUC__ && ! defined __cplusplus)))) 1039 +# define _GL_EXTERN_INLINE_APPLE_BUG 1040 +#endif 1041 +#if ((__GNUC__ \ 1042 + ? defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \ 1043 + : (199901L <= __STDC_VERSION__ \ 1044 + && !defined __HP_cc \ 1045 + && !(defined __SUNPRO_C && __STDC__))) \ 1046 + && !defined _GL_EXTERN_INLINE_APPLE_BUG) 1047 +# define _GL_INLINE inline 1048 +# define _GL_EXTERN_INLINE extern inline 1049 +# define _GL_EXTERN_INLINE_IN_USE 1050 +#elif (2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __STRICT_ANSI__ \ 1051 + && !defined _GL_EXTERN_INLINE_APPLE_BUG) 1052 +# if defined __GNUC_GNU_INLINE__ && __GNUC_GNU_INLINE__ 1053 + /* __gnu_inline__ suppresses a GCC 4.2 diagnostic. */ 1054 +# define _GL_INLINE extern inline __attribute__ ((__gnu_inline__)) 1055 +# else 1056 +# define _GL_INLINE extern inline 1057 +# endif 1058 +# define _GL_EXTERN_INLINE extern 1059 +# define _GL_EXTERN_INLINE_IN_USE 1060 +#else 1061 +# define _GL_INLINE static _GL_UNUSED 1062 +# define _GL_EXTERN_INLINE static _GL_UNUSED 1063 +#endif 1064 + 1065 +#if 4 < __GNUC__ + (6 <= __GNUC_MINOR__) 1066 +# if defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ 1067 +# define _GL_INLINE_HEADER_CONST_PRAGMA 1068 +# else 1069 +# define _GL_INLINE_HEADER_CONST_PRAGMA \ 1070 + _Pragma ("GCC diagnostic ignored \"-Wsuggest-attribute=const\"") 1071 +# endif 1072 + /* Suppress GCC's bogus "no previous prototype for 'FOO'" 1073 + and "no previous declaration for 'FOO'" diagnostics, 1074 + when FOO is an inline function in the header; see 1075 + <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54113>. */ 1076 +# define _GL_INLINE_HEADER_BEGIN \ 1077 + _Pragma ("GCC diagnostic push") \ 1078 + _Pragma ("GCC diagnostic ignored \"-Wmissing-prototypes\"") \ 1079 + _Pragma ("GCC diagnostic ignored \"-Wmissing-declarations\"") \ 1080 + _GL_INLINE_HEADER_CONST_PRAGMA 1081 +# define _GL_INLINE_HEADER_END \ 1082 + _Pragma ("GCC diagnostic pop") 1083 +#else 1084 +# define _GL_INLINE_HEADER_BEGIN 1085 +# define _GL_INLINE_HEADER_END 1086 +#endif 1087 + 1088 +/* Define to `int' if <sys/types.h> doesn't define. */ 1089 +/* #undef gid_t */ 1090 + 1091 +/* Define to `__inline__' or `__inline' if that's what the C compiler 1092 + calls it, or to nothing if 'inline' is not supported under any name. */ 1093 +#ifndef __cplusplus 1094 +/* #undef inline */ 1095 +#endif 1096 + 1097 +/* Work around a bug in Apple GCC 4.0.1 build 5465: In C99 mode, it supports 1098 + the ISO C 99 semantics of 'extern inline' (unlike the GNU C semantics of 1099 + earlier versions), but does not display it by setting __GNUC_STDC_INLINE__. 1100 + __APPLE__ && __MACH__ test for Mac OS X. 1101 + __APPLE_CC__ tests for the Apple compiler and its version. 1102 + __STDC_VERSION__ tests for the C99 mode. */ 1103 +#if defined __APPLE__ && defined __MACH__ && __APPLE_CC__ >= 5465 && !defined __cplusplus && __STDC_VERSION__ >= 199901L && !defined __GNUC_STDC_INLINE__ 1104 +# define __GNUC_STDC_INLINE__ 1 1105 +#endif 1106 + 1107 +/* Define to a type if <wchar.h> does not define. */ 1108 +/* #undef mbstate_t */ 1109 + 1110 +/* Define to `int' if <sys/types.h> does not define. */ 1111 +/* #undef mode_t */ 1112 + 1113 +/* Define to the type of st_nlink in struct stat, or a supertype. */ 1114 +/* #undef nlink_t */ 1115 + 1116 +/* Define to `int' if <sys/types.h> does not define. */ 1117 +/* #undef pid_t */ 1118 + 1119 +/* Define as the type of the result of subtracting two pointers, if the system 1120 + doesn't define it. */ 1121 +/* #undef ptrdiff_t */ 1122 + 1123 +/* Define to the equivalent of the C99 'restrict' keyword, or to 1124 + nothing if this is not supported. Do not define if restrict is 1125 + supported directly. */ 1126 +#define restrict __restrict 1127 +/* Work around a bug in Sun C++: it does not support _Restrict or 1128 + __restrict__, even though the corresponding Sun C compiler ends up with 1129 + "#define restrict _Restrict" or "#define restrict __restrict__" in the 1130 + previous line. Perhaps some future version of Sun C++ will work with 1131 + restrict; if so, hopefully it defines __RESTRICT like Sun C does. */ 1132 +#if defined __SUNPRO_CC && !defined __RESTRICT 1133 +# define _Restrict 1134 +# define __restrict__ 1135 +#endif 1136 + 1137 +/* Define to `unsigned int' if <sys/types.h> does not define. */ 1138 +/* #undef size_t */ 1139 + 1140 +/* Define as a signed type of the same size as size_t. */ 1141 +/* #undef ssize_t */ 1142 + 1143 +/* Define to `int' if <sys/types.h> doesn't define. */ 1144 +/* #undef uid_t */ 1145 + 1146 +/* Define to unsigned long or unsigned long long if <stdint.h> and 1147 + <inttypes.h> don't define. */ 1148 +/* #undef uintmax_t */ 1149 + 1150 +/* Define as a marker that can be attached to declarations that might not 1151 + be used. This helps to reduce warnings, such as from 1152 + GCC -Wunused-parameter. */ 1153 +#if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) 1154 +# define _GL_UNUSED __attribute__ ((__unused__)) 1155 +#else 1156 +# define _GL_UNUSED 1157 +#endif 1158 +/* The name _UNUSED_PARAMETER_ is an earlier spelling, although the name 1159 + is a misnomer outside of parameter lists. */ 1160 +#define _UNUSED_PARAMETER_ _GL_UNUSED 1161 + 1162 +/* The __pure__ attribute was added in gcc 2.96. */ 1163 +#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96) 1164 +# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__)) 1165 +#else 1166 +# define _GL_ATTRIBUTE_PURE /* empty */ 1167 +#endif 1168 + 1169 +/* The __const__ attribute was added in gcc 2.95. */ 1170 +#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) 1171 +# define _GL_ATTRIBUTE_CONST __attribute__ ((__const__)) 1172 +#else 1173 +# define _GL_ATTRIBUTE_CONST /* empty */ 1174 +#endif 1175 + 1176 + 1177 + 1178 +#define __libc_lock_t gl_lock_t 1179 +#define __libc_lock_define gl_lock_define 1180 +#define __libc_lock_define_initialized gl_lock_define_initialized 1181 +#define __libc_lock_init gl_lock_init 1182 +#define __libc_lock_lock gl_lock_lock 1183 +#define __libc_lock_unlock gl_lock_unlock 1184 +#define __libc_lock_recursive_t gl_recursive_lock_t 1185 +#define __libc_lock_define_recursive gl_recursive_lock_define 1186 +#define __libc_lock_define_initialized_recursive gl_recursive_lock_define_initialized 1187 +#define __libc_lock_init_recursive gl_recursive_lock_init 1188 +#define __libc_lock_lock_recursive gl_recursive_lock_lock 1189 +#define __libc_lock_unlock_recursive gl_recursive_lock_unlock 1190 +#define glthread_in_use libintl_thread_in_use 1191 +#define glthread_lock_init_func libintl_lock_init_func 1192 +#define glthread_lock_lock_func libintl_lock_lock_func 1193 +#define glthread_lock_unlock_func libintl_lock_unlock_func 1194 +#define glthread_lock_destroy_func libintl_lock_destroy_func 1195 +#define glthread_rwlock_init_multithreaded libintl_rwlock_init_multithreaded 1196 +#define glthread_rwlock_init_func libintl_rwlock_init_func 1197 +#define glthread_rwlock_rdlock_multithreaded libintl_rwlock_rdlock_multithreaded 1198 +#define glthread_rwlock_rdlock_func libintl_rwlock_rdlock_func 1199 +#define glthread_rwlock_wrlock_multithreaded libintl_rwlock_wrlock_multithreaded 1200 +#define glthread_rwlock_wrlock_func libintl_rwlock_wrlock_func 1201 +#define glthread_rwlock_unlock_multithreaded libintl_rwlock_unlock_multithreaded 1202 +#define glthread_rwlock_unlock_func libintl_rwlock_unlock_func 1203 +#define glthread_rwlock_destroy_multithreaded libintl_rwlock_destroy_multithreaded 1204 +#define glthread_rwlock_destroy_func libintl_rwlock_destroy_func 1205 +#define glthread_recursive_lock_init_multithreaded libintl_recursive_lock_init_multithreaded 1206 +#define glthread_recursive_lock_init_func libintl_recursive_lock_init_func 1207 +#define glthread_recursive_lock_lock_multithreaded libintl_recursive_lock_lock_multithreaded 1208 +#define glthread_recursive_lock_lock_func libintl_recursive_lock_lock_func 1209 +#define glthread_recursive_lock_unlock_multithreaded libintl_recursive_lock_unlock_multithreaded 1210 +#define glthread_recursive_lock_unlock_func libintl_recursive_lock_unlock_func 1211 +#define glthread_recursive_lock_destroy_multithreaded libintl_recursive_lock_destroy_multithreaded 1212 +#define glthread_recursive_lock_destroy_func libintl_recursive_lock_destroy_func 1213 +#define glthread_once_func libintl_once_func 1214 +#define glthread_once_singlethreaded libintl_once_singlethreaded 1215 +#define glthread_once_multithreaded libintl_once_multithreaded 1216 + 1217 + 1218 + 1219 +/* On Windows, variables that may be in a DLL must be marked specially. */ 1220 +#if (defined _MSC_VER && defined _DLL) && !defined IN_RELOCWRAPPER 1221 +# define DLL_VARIABLE __declspec (dllimport) 1222 +#else 1223 +# define DLL_VARIABLE 1224 +#endif 1225 + 1226 +/* Extra OS/2 (emx+gcc) defines. */ 1227 +#ifdef __EMX__ 1228 +# include "intl/os2compat.h" 1229 +#endif 1230 + 1231 diff --git a/gettext-runtime/config.win32.h b/gettext-runtime/config.win32.h 1232 new file mode 100644 1233 index 0000000..1093a7f 1234 --- /dev/null 1235 +++ b/gettext-runtime/config.win32.h 1236 @@ -0,0 +1,835 @@ 1237 +/* config.h. Generated from config.h.in by configure. */ 1238 +/* config.h.in. Generated from configure.ac by autoheader. */ 1239 + 1240 +# define _GL_INLINE_HEADER_BEGIN 1241 +# define _GL_INLINE_HEADER_END 1242 +# define _GL_INLINE static inline 1243 + 1244 +/* Disable function deprecated warnings */ 1245 +#define _CRT_NONSTDC_NO_WARNINGS 1246 + 1247 +/* Define to the number of bits in type 'ptrdiff_t'. */ 1248 +#define BITSIZEOF_PTRDIFF_T sizeof(ptrdiff_t) 1249 + 1250 +/* Define to the number of bits in type 'sig_atomic_t'. */ 1251 +#define BITSIZEOF_SIG_ATOMIC_T 32 1252 + 1253 +/* Define to the number of bits in type 'size_t'. */ 1254 +#define BITSIZEOF_SIZE_T sizeof(size_t) 1255 + 1256 +/* Define to the number of bits in type 'wchar_t'. */ 1257 +#define BITSIZEOF_WCHAR_T 16 1258 + 1259 +/* Define to the number of bits in type 'wint_t'. */ 1260 +#define BITSIZEOF_WINT_T 16 1261 + 1262 +/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP 1263 + systems. This function is required for `alloca.c' support on those systems. 1264 + */ 1265 +/* #undef CRAY_STACKSEG_END */ 1266 + 1267 +/* Define if mono is the preferred C# implementation. */ 1268 +/* #undef CSHARP_CHOICE_MONO */ 1269 + 1270 +/* Define if pnet is the preferred C# implementation. */ 1271 +/* #undef CSHARP_CHOICE_PNET */ 1272 + 1273 +/* Define to 1 if using `alloca.c'. */ 1274 +/* #undef C_ALLOCA */ 1275 + 1276 +/* Define to 1 if translation of program messages to the user's native 1277 + language is requested. */ 1278 +#define ENABLE_NLS 1 1279 + 1280 +/* Define to 1 if the package shall run at any location in the filesystem. */ 1281 +#define ENABLE_RELOCATABLE 1 1282 + 1283 +/* Define to 1 when using the gnulib module fwriteerror. */ 1284 +#define GNULIB_FWRITEERROR 1 1285 + 1286 +/* Define to 1 if you have `alloca', as a function or macro. */ 1287 +#define HAVE_ALLOCA 1 1288 + 1289 +/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix). 1290 + */ 1291 +/* #undef HAVE_ALLOCA_H */ 1292 + 1293 +/* Define to 1 if you have the `argz_count' function. */ 1294 +/* #undef HAVE_ARGZ_COUNT */ 1295 + 1296 +/* Define to 1 if you have the <argz.h> header file. */ 1297 +/* #undef HAVE_ARGZ_H */ 1298 + 1299 +/* Define to 1 if you have the `argz_next' function. */ 1300 +/* #undef HAVE_ARGZ_NEXT */ 1301 + 1302 +/* Define to 1 if you have the `argz_stringify' function. */ 1303 +/* #undef HAVE_ARGZ_STRINGIFY */ 1304 + 1305 +/* Define to 1 if you have the `asprintf' function. */ 1306 +/* #undef HAVE_ASPRINTF */ 1307 + 1308 +/* Define to 1 if you have the `atexit' function. */ 1309 +#define HAVE_ATEXIT 1 1310 + 1311 +/* Define to 1 if you have the <bp-sym.h> header file. */ 1312 +/* #undef HAVE_BP_SYM_H */ 1313 + 1314 +/* Define to 1 if the compiler understands __builtin_expect. */ 1315 +/* #undef HAVE_BUILTIN_EXPECT */ 1316 + 1317 +/* Define to 1 if you have the `canonicalize_file_name' function. */ 1318 +/* #undef HAVE_CANONICALIZE_FILE_NAME */ 1319 + 1320 +/* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the 1321 + CoreFoundation framework. */ 1322 +/* #undef HAVE_CFLOCALECOPYCURRENT */ 1323 + 1324 +/* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in 1325 + the CoreFoundation framework. */ 1326 +/* #undef HAVE_CFPREFERENCESCOPYAPPVALUE */ 1327 + 1328 +/* Define if the GNU dcgettext() function is already present or preinstalled. 1329 + */ 1330 +/* #undef HAVE_DCGETTEXT */ 1331 + 1332 +/* Define to 1 if you have the declaration of `canonicalize_file_name', and to 1333 + 0 if you don't. */ 1334 +#define HAVE_DECL_CANONICALIZE_FILE_NAME 0 1335 + 1336 +/* Define to 1 if you have the declaration of `clearerr_unlocked', and to 0 if 1337 + you don't. */ 1338 +#define HAVE_DECL_CLEARERR_UNLOCKED 0 1339 + 1340 +/* Define to 1 if you have the declaration of `feof_unlocked', and to 0 if you 1341 + don't. */ 1342 +#define HAVE_DECL_FEOF_UNLOCKED 0 1343 + 1344 +/* Define to 1 if you have the declaration of `ferror_unlocked', and to 0 if 1345 + you don't. */ 1346 +#define HAVE_DECL_FERROR_UNLOCKED 0 1347 + 1348 +/* Define to 1 if you have the declaration of `fflush_unlocked', and to 0 if 1349 + you don't. */ 1350 +#define HAVE_DECL_FFLUSH_UNLOCKED 0 1351 + 1352 +/* Define to 1 if you have the declaration of `fgets_unlocked', and to 0 if 1353 + you don't. */ 1354 +#define HAVE_DECL_FGETS_UNLOCKED 0 1355 + 1356 +/* Define to 1 if you have the declaration of `fputc_unlocked', and to 0 if 1357 + you don't. */ 1358 +#define HAVE_DECL_FPUTC_UNLOCKED 0 1359 + 1360 +/* Define to 1 if you have the declaration of `fputs_unlocked', and to 0 if 1361 + you don't. */ 1362 +#define HAVE_DECL_FPUTS_UNLOCKED 0 1363 + 1364 +/* Define to 1 if you have the declaration of `fread_unlocked', and to 0 if 1365 + you don't. */ 1366 +#define HAVE_DECL_FREAD_UNLOCKED 0 1367 + 1368 +/* Define to 1 if you have the declaration of `fwrite_unlocked', and to 0 if 1369 + you don't. */ 1370 +#define HAVE_DECL_FWRITE_UNLOCKED 0 1371 + 1372 +/* Define to 1 if you have the declaration of `getchar_unlocked', and to 0 if 1373 + you don't. */ 1374 +#define HAVE_DECL_GETCHAR_UNLOCKED 0 1375 + 1376 +/* Define to 1 if you have the declaration of `getc_unlocked', and to 0 if you 1377 + don't. */ 1378 +#define HAVE_DECL_GETC_UNLOCKED 0 1379 + 1380 +/* Define to 1 if you have the declaration of `getenv', and to 0 if you don't. 1381 + */ 1382 +#define HAVE_DECL_GETENV 1 1383 + 1384 +/* Define to 1 if you have the declaration of `putchar_unlocked', and to 0 if 1385 + you don't. */ 1386 +#define HAVE_DECL_PUTCHAR_UNLOCKED 0 1387 + 1388 +/* Define to 1 if you have the declaration of `putc_unlocked', and to 0 if you 1389 + don't. */ 1390 +#define HAVE_DECL_PUTC_UNLOCKED 0 1391 + 1392 +/* Define to 1 if you have the declaration of `strdup', and to 0 if you don't. 1393 + */ 1394 +#define HAVE_DECL_STRDUP 1 1395 + 1396 +/* Define to 1 if you have the declaration of `strerror', and to 0 if you 1397 + don't. */ 1398 +/* #undef HAVE_DECL_STRERROR */ 1399 + 1400 +/* Define to 1 if you have the declaration of `strerror_r', and to 0 if you 1401 + don't. */ 1402 +#define HAVE_DECL_STRERROR_R 0 1403 + 1404 +/* Define to 1 if you have the declaration of `strnlen', and to 0 if you 1405 + don't. */ 1406 +#define HAVE_DECL_STRNLEN 0 1407 + 1408 +/* Define to 1 if you have the declaration of `wcwidth', and to 0 if you 1409 + don't. */ 1410 +#define HAVE_DECL_WCWIDTH 0 1411 + 1412 +/* Define to 1 if you have the declaration of `_snprintf', and to 0 if you 1413 + don't. */ 1414 +#define HAVE_DECL__SNPRINTF 1 1415 + 1416 +/* Define to 1 if you have the declaration of `_snwprintf', and to 0 if you 1417 + don't. */ 1418 +#define HAVE_DECL__SNWPRINTF 1 1419 + 1420 +/* Define to 1 if you have the <dlfcn.h> header file. */ 1421 +/* #undef HAVE_DLFCN_H */ 1422 + 1423 +/* Define if you have the declaration of environ. */ 1424 +#define HAVE_ENVIRON_DECL 1 1425 + 1426 +/* Define to 1 if you have the `fwprintf' function. */ 1427 +#define HAVE_FWPRINTF 1 1428 + 1429 +/* Define to 1 if you have the `getcwd' function. */ 1430 +#define HAVE_GETCWD 1 1431 + 1432 +/* Define to 1 if you have the `getegid' function. */ 1433 +/* #undef HAVE_GETEGID */ 1434 + 1435 +/* Define to 1 if you have the `geteuid' function. */ 1436 +/* #undef HAVE_GETEUID */ 1437 + 1438 +/* Define to 1 if you have the `getgid' function. */ 1439 +/* #undef HAVE_GETGID */ 1440 + 1441 +/* Define to 1 if you have the <getopt.h> header file. */ 1442 +/* #undef HAVE_GETOPT_H */ 1443 + 1444 +/* Define to 1 if you have the `getopt_long_only' function. */ 1445 +/* #undef HAVE_GETOPT_LONG_ONLY */ 1446 + 1447 +/* Define to 1 if you have the `getpagesize' function. */ 1448 +/* #undef HAVE_GETPAGESIZE */ 1449 + 1450 +/* Define if the GNU gettext() function is already present or preinstalled. */ 1451 +/* #undef HAVE_GETTEXT */ 1452 + 1453 +/* Define to 1 if you have the `getuid' function. */ 1454 +/* #undef HAVE_GETUID */ 1455 + 1456 +/* Define if you have the iconv() function and it works. */ 1457 +/* #undef HAVE_ICONV */ 1458 + 1459 +/* Define to 1 if you have the <iconv.h> header file. */ 1460 +/* #undef HAVE_ICONV_H */ 1461 + 1462 +/* Define if your compiler supports the #include_next directive. */ 1463 +/* #undef HAVE_INCLUDE_NEXT */ 1464 + 1465 +/* Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>. */ 1466 +#define HAVE_INTMAX_T 1 1467 + 1468 +/* Define to 1 if you have the <inttypes.h> header file. */ 1469 +/* #undef HAVE_INTTYPES_H */ 1470 + 1471 +/* Define if <inttypes.h> exists, doesn't clash with <sys/types.h>, and 1472 + declares uintmax_t. */ 1473 +/* #undef HAVE_INTTYPES_H_WITH_UINTMAX */ 1474 + 1475 +/* Define to 1 if you have the `iswcntrl' function. */ 1476 +#define HAVE_ISWCNTRL 1 1477 + 1478 +/* Define if you have <langinfo.h> and nl_langinfo(CODESET). */ 1479 +/* #undef HAVE_LANGINFO_CODESET */ 1480 + 1481 +/* Define if your <locale.h> file defines LC_MESSAGES. */ 1482 +/* #undef HAVE_LC_MESSAGES */ 1483 + 1484 +/* Define to 1 if you have the <limits.h> header file. */ 1485 +#define HAVE_LIMITS_H 1 1486 + 1487 +/* Define to 1 if the system has the type `long long int'. */ 1488 +#cmakedefine HAVE_LONG_LONG_INT 1 1489 + 1490 +/* Define to 1 if you have the <mach-o/dyld.h> header file. */ 1491 +/* #undef HAVE_MACH_O_DYLD_H */ 1492 + 1493 +/* Define if the 'malloc' function is POSIX compliant. */ 1494 +/* #undef HAVE_MALLOC_POSIX */ 1495 + 1496 +/* Define to 1 if mbrtowc and mbstate_t are properly declared. */ 1497 +/* #undef HAVE_MBRTOWC */ 1498 + 1499 +/* Define to 1 if <wchar.h> declares mbstate_t. */ 1500 +#define HAVE_MBSTATE_T 1 1501 + 1502 +/* Define to 1 if you have the `memchr' function. */ 1503 +#define HAVE_MEMCHR 1 1504 + 1505 +/* Define to 1 if you have the `memmove' function. */ 1506 +#define HAVE_MEMMOVE 1 1507 + 1508 +/* Define to 1 if you have the <memory.h> header file. */ 1509 +#define HAVE_MEMORY_H 1 1510 + 1511 +/* Define to 1 if you have the `mempcpy' function. */ 1512 +#ifdef __GNUC__ 1513 +#define HAVE_MEMPCPY 1 1514 +#endif 1515 + 1516 +/* Define to 1 if you have a working `mmap' system call. */ 1517 +/* #undef HAVE_MMAP */ 1518 + 1519 +/* Define to 1 if you have the `munmap' function. */ 1520 +/* #undef HAVE_MUNMAP */ 1521 + 1522 +/* Define if you have <langinfo.h> and it defines the NL_LOCALE_NAME macro if 1523 + _GNU_SOURCE is defined. */ 1524 +/* #undef HAVE_NL_LOCALE_NAME */ 1525 + 1526 +/* Define if your printf() function supports format strings with positions. */ 1527 +/* #undef HAVE_POSIX_PRINTF */ 1528 + 1529 +/* Define if the <pthread.h> defines PTHREAD_MUTEX_RECURSIVE. */ 1530 +/* #undef HAVE_PTHREAD_MUTEX_RECURSIVE */ 1531 + 1532 +/* Define if the POSIX multithreading library has read/write locks. */ 1533 +/* #undef HAVE_PTHREAD_RWLOCK */ 1534 + 1535 +/* Define to 1 if you have the `putenv' function. */ 1536 +#define HAVE_PUTENV 1 1537 + 1538 +/* Define to 1 if you have the `readlink' function. */ 1539 +/* #undef HAVE_READLINK */ 1540 + 1541 +/* Define to 1 if you have the <search.h> header file. */ 1542 +#define HAVE_SEARCH_H 1 1543 + 1544 +/* Define to 1 if you have the `setenv' function. */ 1545 +/* #undef HAVE_SETENV */ 1546 + 1547 +/* Define to 1 if you have the `setlocale' function. */ 1548 +#define HAVE_SETLOCALE 1 1549 + 1550 +/* Define to 1 if 'sig_atomic_t' is a signed integer type. */ 1551 +#define HAVE_SIGNED_SIG_ATOMIC_T 1 1552 + 1553 +/* Define to 1 if 'wchar_t' is a signed integer type. */ 1554 +/* #undef HAVE_SIGNED_WCHAR_T */ 1555 + 1556 +/* Define to 1 if 'wint_t' is a signed integer type. */ 1557 +/* #undef HAVE_SIGNED_WINT_T */ 1558 + 1559 +/* Define to 1 if you have the `snprintf' function. */ 1560 +/* #undef HAVE_SNPRINTF */ 1561 + 1562 +/* Define to 1 if stdbool.h conforms to C99. */ 1563 +/* #undef HAVE_STDBOOL_H */ 1564 + 1565 +/* Define to 1 if you have the <stddef.h> header file. */ 1566 +#define HAVE_STDDEF_H 1 1567 + 1568 +/* Define to 1 if you have the <stdint.h> header file. */ 1569 +#define HAVE_STDINT_H 1 1570 + 1571 +/* Define if <stdint.h> exists, doesn't clash with <sys/types.h>, and declares 1572 + uintmax_t. */ 1573 +#define HAVE_STDINT_H_WITH_UINTMAX 1 1574 + 1575 +/* Define to 1 if you have the <stdlib.h> header file. */ 1576 +#define HAVE_STDLIB_H 1 1577 + 1578 +/* Define to 1 if you have the `stpcpy' function. */ 1579 +/* #undef HAVE_STPCPY */ 1580 + 1581 +/* Define to 1 if you have the `strcasecmp' function. */ 1582 +/* #undef HAVE_STRCASECMP */ 1583 + 1584 +/* Define to 1 if you have the `strdup' function. */ 1585 +#define HAVE_STRDUP 1 1586 + 1587 +/* Define to 1 if you have the `strerror_r' function. */ 1588 +/* #undef HAVE_STRERROR_R */ 1589 + 1590 +/* Define to 1 if you have the <strings.h> header file. */ 1591 +/* #undef HAVE_STRINGS_H */ 1592 + 1593 +/* Define to 1 if you have the <string.h> header file. */ 1594 +#define HAVE_STRING_H 1 1595 + 1596 +/* Define to 1 if you have the `strtol' function. */ 1597 +#define HAVE_STRTOL 1 1598 + 1599 +/* Define to 1 if you have the `strtoul' function. */ 1600 +#define HAVE_STRTOUL 1 1601 + 1602 +/* Define to 1 if you have the <sys/bitypes.h> header file. */ 1603 +/* #undef HAVE_SYS_BITYPES_H */ 1604 + 1605 +/* Define to 1 if you have the <sys/inttypes.h> header file. */ 1606 +/* #undef HAVE_SYS_INTTYPES_H */ 1607 + 1608 +/* Define to 1 if you have the <sys/param.h> header file. */ 1609 +/* #undef HAVE_SYS_PARAM_H */ 1610 + 1611 +/* Define to 1 if you have the <sys/stat.h> header file. */ 1612 +#define HAVE_SYS_STAT_H 1 1613 + 1614 +/* Define to 1 if you have the <sys/types.h> header file. */ 1615 +#define HAVE_SYS_TYPES_H 1 1616 + 1617 +/* Define to 1 if you have the `tsearch' function. */ 1618 +/* #undef HAVE_TSEARCH */ 1619 + 1620 +/* Define if you have the 'uintmax_t' type in <stdint.h> or <inttypes.h>. */ 1621 +#define HAVE_UINTMAX_T 1 1622 + 1623 +/* Define to 1 if you have the <unistd.h> header file. */ 1624 +/* #undef HAVE_UNISTD_H */ 1625 + 1626 +/* Define to 1 if the system has the type `unsigned long long int'. */ 1627 +/* #undef HAVE_UNSIGNED_LONG_LONG_INT */ 1628 + 1629 +/* Define to 1 or 0, depending whether the compiler supports simple visibility 1630 + declarations. */ 1631 +#define HAVE_VISIBILITY 0 1632 + 1633 +/* Define to 1 if you have the <wchar.h> header file. */ 1634 +#define HAVE_WCHAR_H 1 1635 + 1636 +/* Define if you have the 'wchar_t' type. */ 1637 +#define HAVE_WCHAR_T 1 1638 + 1639 +/* Define to 1 if you have the `wcslen' function. */ 1640 +#define HAVE_WCSLEN 1 1641 + 1642 +/* Define to 1 if you have the <wctype.h> header file. */ 1643 +#define HAVE_WCTYPE_H 1 1644 + 1645 +/* Define to 1 if you have the `wcwidth' function. */ 1646 +/* #undef HAVE_WCWIDTH */ 1647 + 1648 +/* Define if you have the 'wint_t' type. */ 1649 +#define HAVE_WINT_T 1 1650 + 1651 +/* Define to 1 if the system has the type `_Bool'. */ 1652 +/* #undef HAVE__BOOL */ 1653 + 1654 +/* Define to 1 if you have the `_NSGetExecutablePath' function. */ 1655 +/* #undef HAVE__NSGETEXECUTABLEPATH */ 1656 + 1657 +/* Define to 1 if you have the `__fsetlocking' function. */ 1658 +/* #undef HAVE___FSETLOCKING */ 1659 + 1660 +/* Define as const if the declaration of iconv() needs const. */ 1661 +#define ICONV_CONST @ICONV_CONST@ 1662 + 1663 +/* Define to a symbolic name denoting the flavor of iconv_open() 1664 + implementation. */ 1665 +/* #undef ICONV_FLAVOR */ 1666 + 1667 +/* Define to the value of ${prefix}, as a string. */ 1668 +/* #define INSTALLPREFIX "/usr/local" */ 1669 + 1670 +/* Define if integer division by zero raises signal SIGFPE. */ 1671 +#define INTDIV0_RAISES_SIGFPE 0 1672 + 1673 +/* If malloc(0) is != NULL, define this to 1. Otherwise define this to 0. */ 1674 +#define MALLOC_0_IS_NONNULL 1 1675 + 1676 +/* Define to 1 if your C compiler doesn't accept -c and -o together. */ 1677 +#define NO_MINUS_C_MINUS_O 1 1678 + 1679 +/* Name of package */ 1680 +#define PACKAGE "gettext-runtime" 1681 + 1682 +/* Define to the address where bug reports for this package should be sent. */ 1683 +#define PACKAGE_BUGREPORT "" 1684 + 1685 +/* Define to the full name of this package. */ 1686 +#define PACKAGE_NAME "" 1687 + 1688 +/* Define to the full name and version of this package. */ 1689 +#define PACKAGE_STRING "" 1690 + 1691 +/* Define to the one symbol short name of this package. */ 1692 +#define PACKAGE_TARNAME "" 1693 + 1694 +/* Define to the version of this package. */ 1695 +#define PACKAGE_VERSION "" 1696 + 1697 +/* Define if <inttypes.h> exists and defines unusable PRI* macros. */ 1698 +/* #undef PRI_MACROS_BROKEN */ 1699 + 1700 +/* Define if the pthread_in_use() detection is hard. */ 1701 +/* #undef PTHREAD_IN_USE_DETECTION_HARD */ 1702 + 1703 +/* Define to l, ll, u, ul, ull, etc., as suitable for constants of type 1704 + 'ptrdiff_t'. */ 1705 +#define PTRDIFF_T_SUFFIX 1706 + 1707 +/* Define this to 1 if strerror is broken. */ 1708 +/* #undef REPLACE_STRERROR */ 1709 + 1710 +/* Define to l, ll, u, ul, ull, etc., as suitable for constants of type 1711 + 'sig_atomic_t'. */ 1712 +#define SIG_ATOMIC_T_SUFFIX 1713 + 1714 +/* Define as the maximum value of type 'size_t', if the system doesn't define 1715 + it. */ 1716 +#if defined(_WIN32) 1717 +#define SIZE_MAX (((1UL << 31) - 1) * 2 + 1) 1718 +#endif 1719 + 1720 +/* Define to l, ll, u, ul, ull, etc., as suitable for constants of type 1721 + 'size_t'. */ 1722 +#define SIZE_T_SUFFIX u 1723 + 1724 +/* If using the C implementation of alloca, define if you know the 1725 + direction of stack growth for your system; otherwise it will be 1726 + automatically deduced at runtime. 1727 + STACK_DIRECTION > 0 => grows toward higher addresses 1728 + STACK_DIRECTION < 0 => grows toward lower addresses 1729 + STACK_DIRECTION = 0 => direction of growth unknown */ 1730 +/* #undef STACK_DIRECTION */ 1731 + 1732 +/* Define to 1 if you have the ANSI C header files. */ 1733 +#define STDC_HEADERS 1 1734 + 1735 +/* Define to 1 if strerror_r returns char *. */ 1736 +/* #undef STRERROR_R_CHAR_P */ 1737 + 1738 +/* Define if the POSIX multithreading library can be used. */ 1739 +/* #undef USE_POSIX_THREADS */ 1740 + 1741 +/* Define if references to the POSIX multithreading library should be made 1742 + weak. */ 1743 +/* #undef USE_POSIX_THREADS_WEAK */ 1744 + 1745 +/* Define if the GNU Pth multithreading library can be used. */ 1746 +/* #undef USE_PTH_THREADS */ 1747 + 1748 +/* Define if references to the GNU Pth multithreading library should be made 1749 + weak. */ 1750 +/* #undef USE_PTH_THREADS_WEAK */ 1751 + 1752 +/* Define if the old Solaris multithreading library can be used. */ 1753 +/* #undef USE_SOLARIS_THREADS */ 1754 + 1755 +/* Define if references to the old Solaris multithreading library should be 1756 + made weak. */ 1757 +/* #undef USE_SOLARIS_THREADS_WEAK */ 1758 + 1759 +/* Define to 1 if you want getc etc. to use unlocked I/O if available. 1760 + Unlocked I/O can improve performance in unithreaded apps, but it is not 1761 + safe for multithreaded apps. */ 1762 +#define USE_UNLOCKED_IO 0 1763 + 1764 +/* Define if the Win32 multithreading API can be used. */ 1765 +#define USE_WIN32_THREADS 1 1766 + 1767 +/* Version number of package */ 1768 +#define VERSION "0.17" 1769 + 1770 +/* Define to l, ll, u, ul, ull, etc., as suitable for constants of type 1771 + 'wchar_t'. */ 1772 +#define WCHAR_T_SUFFIX 1773 + 1774 +/* Define to l, ll, u, ul, ull, etc., as suitable for constants of type 1775 + 'wint_t'. */ 1776 +#define WINT_T_SUFFIX 1777 + 1778 +/* Enable GNU extensions on systems that have them. */ 1779 +#ifndef _GNU_SOURCE 1780 +# define _GNU_SOURCE 1 1781 +#endif 1782 + 1783 +/* Define to 1 if on MINIX. */ 1784 +/* #undef _MINIX */ 1785 + 1786 +/* Define to 2 if the system does not provide POSIX.1 features except with 1787 + this defined. */ 1788 +/* #undef _POSIX_1_SOURCE */ 1789 + 1790 +/* Define to 1 if you need to in order for `stat' and other things to work. */ 1791 +/* #undef _POSIX_SOURCE */ 1792 + 1793 +/* Enable extensions on AIX 3, Interix. */ 1794 +#ifndef _ALL_SOURCE 1795 +# define _ALL_SOURCE 1 1796 +#endif 1797 +/* Enable GNU extensions on systems that have them. */ 1798 +#ifndef _GNU_SOURCE 1799 +# define _GNU_SOURCE 1 1800 +#endif 1801 +/* Enable threading extensions on Solaris. */ 1802 +#ifndef _POSIX_PTHREAD_SEMANTICS 1803 +# define _POSIX_PTHREAD_SEMANTICS 1 1804 +#endif 1805 +/* Enable extensions on HP NonStop. */ 1806 +#ifndef _TANDEM_SOURCE 1807 +# define _TANDEM_SOURCE 1 1808 +#endif 1809 +/* Enable general extensions on Solaris. */ 1810 +#ifndef __EXTENSIONS__ 1811 +# define __EXTENSIONS__ 1 1812 +#endif 1813 + 1814 +/* Define to rpl_ if the getopt replacement functions and variables should be 1815 + used. */ 1816 +#define __GETOPT_PREFIX rpl_ 1817 + 1818 +/* Define to `__inline__' or `__inline' if that's what the C compiler 1819 + calls it, or to nothing if 'inline' is not supported under any name. */ 1820 +#ifndef __cplusplus 1821 +#define inline __inline 1822 +#endif 1823 + 1824 +/* Attributes. */ 1825 +#ifdef __has_attribute 1826 +# define _GL_HAS_ATTRIBUTE(attr) __has_attribute (__##attr##__) 1827 +#else 1828 +# define _GL_HAS_ATTRIBUTE(attr) _GL_ATTR_##attr 1829 +#endif 1830 + 1831 +#if _GL_HAS_ATTRIBUTE (alloc_size) 1832 +# define _GL_ATTRIBUTE_ALLOC_SIZE(args) __attribute__ ((__alloc_size__ args)) 1833 +#else 1834 +# define _GL_ATTRIBUTE_ALLOC_SIZE(args) 1835 +#endif 1836 + 1837 +#if _GL_HAS_ATTRIBUTE (always_inline) 1838 +# define _GL_ATTRIBUTE_ALWAYS_INLINE __attribute__ ((__always_inline__)) 1839 +#else 1840 +# define _GL_ATTRIBUTE_ALWAYS_INLINE 1841 +#endif 1842 + 1843 +#if _GL_HAS_ATTRIBUTE (artificial) 1844 +# define _GL_ATTRIBUTE_ARTIFICIAL __attribute__ ((__artificial__)) 1845 +#else 1846 +# define _GL_ATTRIBUTE_ARTIFICIAL 1847 +#endif 1848 + 1849 +/* Avoid __attribute__ ((cold)) on MinGW; see thread starting at 1850 + <https://lists.gnu.org/r/emacs-devel/2019-04/msg01152.html>. */ 1851 +#if _GL_HAS_ATTRIBUTE (cold) && !defined __MINGW32__ 1852 +# define _GL_ATTRIBUTE_COLD __attribute__ ((__cold__)) 1853 +#else 1854 +# define _GL_ATTRIBUTE_COLD 1855 +#endif 1856 + 1857 +#if _GL_HAS_ATTRIBUTE (const) 1858 +# define _GL_ATTRIBUTE_CONST __attribute__ ((__const__)) 1859 +#else 1860 +# define _GL_ATTRIBUTE_CONST 1861 +#endif 1862 + 1863 +#if 201710L < __STDC_VERSION__ 1864 +# define _GL_ATTRIBUTE_DEPRECATED [[__deprecated__]] 1865 +#elif _GL_HAS_ATTRIBUTE (deprecated) 1866 +# define _GL_ATTRIBUTE_DEPRECATED __attribute__ ((__deprecated__)) 1867 +#else 1868 +# define _GL_ATTRIBUTE_DEPRECATED 1869 +#endif 1870 + 1871 +#if _GL_HAS_ATTRIBUTE (error) 1872 +# define _GL_ATTRIBUTE_ERROR(msg) __attribute__ ((__error__ (msg))) 1873 +# define _GL_ATTRIBUTE_WARNING(msg) __attribute__ ((__warning__ (msg))) 1874 +#else 1875 +# define _GL_ATTRIBUTE_ERROR(msg) 1876 +# define _GL_ATTRIBUTE_WARNING(msg) 1877 +#endif 1878 + 1879 +#if _GL_HAS_ATTRIBUTE (externally_visible) 1880 +# define _GL_ATTRIBUTE_EXTERNALLY_VISIBLE __attribute__ ((externally_visible)) 1881 +#else 1882 +# define _GL_ATTRIBUTE_EXTERNALLY_VISIBLE 1883 +#endif 1884 + 1885 +/* FALLTHROUGH is special, because it always expands to something. */ 1886 +#if 201710L < __STDC_VERSION__ 1887 +# define _GL_ATTRIBUTE_FALLTHROUGH [[__fallthrough__]] 1888 +#elif _GL_HAS_ATTRIBUTE (fallthrough) 1889 +# define _GL_ATTRIBUTE_FALLTHROUGH __attribute__ ((__fallthrough__)) 1890 +#else 1891 +# define _GL_ATTRIBUTE_FALLTHROUGH ((void) 0) 1892 +#endif 1893 + 1894 +#if _GL_HAS_ATTRIBUTE (format) 1895 +# define _GL_ATTRIBUTE_FORMAT(spec) __attribute__ ((__format__ spec)) 1896 +#else 1897 +# define _GL_ATTRIBUTE_FORMAT(spec) 1898 +#endif 1899 + 1900 +#if _GL_HAS_ATTRIBUTE (leaf) 1901 +# define _GL_ATTRIBUTE_LEAF __attribute__ ((__leaf__)) 1902 +#else 1903 +# define _GL_ATTRIBUTE_LEAF 1904 +#endif 1905 + 1906 +#if _GL_HAS_ATTRIBUTE (may_alias) 1907 +# define _GL_ATTRIBUTE_MAY_ALIAS __attribute__ ((__may_alias__)) 1908 +#else 1909 +# define _GL_ATTRIBUTE_MAY_ALIAS 1910 +#endif 1911 + 1912 +#if 201710L < __STDC_VERSION__ 1913 +# define _GL_ATTRIBUTE_MAYBE_UNUSED [[__maybe_unused__]] 1914 +#elif _GL_HAS_ATTRIBUTE (unused) 1915 +# define _GL_ATTRIBUTE_MAYBE_UNUSED __attribute__ ((__unused__)) 1916 +#else 1917 +# define _GL_ATTRIBUTE_MAYBE_UNUSED 1918 +#endif 1919 +/* Earlier spellings of this macro. */ 1920 +#define _GL_UNUSED _GL_ATTRIBUTE_MAYBE_UNUSED 1921 +#define _UNUSED_PARAMETER_ _GL_ATTRIBUTE_MAYBE_UNUSED 1922 + 1923 +#if _GL_HAS_ATTRIBUTE (malloc) 1924 +# define _GL_ATTRIBUTE_MALLOC __attribute__ ((__malloc__)) 1925 +#else 1926 +# define _GL_ATTRIBUTE_MALLOC 1927 +#endif 1928 + 1929 +#if 201710L < __STDC_VERSION__ 1930 +# define _GL_ATTRIBUTE_NODISCARD [[__nodiscard__]] 1931 +#elif _GL_HAS_ATTRIBUTE (warn_unused_result) 1932 +# define _GL_ATTRIBUTE_NODISCARD __attribute__ ((__warn_unused_result__)) 1933 +#else 1934 +# define _GL_ATTRIBUTE_NODISCARD 1935 +#endif 1936 + 1937 +#if _GL_HAS_ATTRIBUTE (noinline) 1938 +# define _GL_ATTRIBUTE_NOINLINE __attribute__ ((__noinline__)) 1939 +#else 1940 +# define _GL_ATTRIBUTE_NOINLINE 1941 +#endif 1942 + 1943 +#if _GL_HAS_ATTRIBUTE (nonnull) 1944 +# define _GL_ATTRIBUTE_NONNULL(args) __attribute__ ((__nonnull__ args)) 1945 +#else 1946 +# define _GL_ATTRIBUTE_NONNULL(args) 1947 +#endif 1948 + 1949 +#if _GL_HAS_ATTRIBUTE (nonstring) 1950 +# define _GL_ATTRIBUTE_NONSTRING __attribute__ ((__nonstring__)) 1951 +#else 1952 +# define _GL_ATTRIBUTE_NONSTRING 1953 +#endif 1954 + 1955 +/* There is no _GL_ATTRIBUTE_NORETURN; use _Noreturn instead. */ 1956 + 1957 +#if _GL_HAS_ATTRIBUTE (nothrow) && !defined __cplusplus 1958 +# define _GL_ATTRIBUTE_NOTHROW __attribute__ ((__nothrow__)) 1959 +#else 1960 +# define _GL_ATTRIBUTE_NOTHROW 1961 +#endif 1962 + 1963 +#if _GL_HAS_ATTRIBUTE (packed) 1964 +# define _GL_ATTRIBUTE_PACKED __attribute__ ((__packed__)) 1965 +#else 1966 +# define _GL_ATTRIBUTE_PACKED 1967 +#endif 1968 + 1969 +#if _GL_HAS_ATTRIBUTE (pure) 1970 +# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__)) 1971 +#else 1972 +# define _GL_ATTRIBUTE_PURE 1973 +#endif 1974 + 1975 +#if _GL_HAS_ATTRIBUTE (returns_nonnull) 1976 +# define _GL_ATTRIBUTE_RETURNS_NONNULL __attribute__ ((__returns_nonnull__)) 1977 +#else 1978 +# define _GL_ATTRIBUTE_RETURNS_NONNULL 1979 +#endif 1980 + 1981 +#if _GL_HAS_ATTRIBUTE (sentinel) 1982 +# define _GL_ATTRIBUTE_SENTINEL(pos) __attribute__ ((__sentinel__ pos)) 1983 +#else 1984 +# define _GL_ATTRIBUTE_SENTINEL(pos) 1985 +#endif 1986 + 1987 +/* Define to a type if <wchar.h> does not define. */ 1988 +/* #undef mbstate_t */ 1989 + 1990 +/* Define as the type of the result of subtracting two pointers, if the system 1991 + doesn't define it. */ 1992 +/* #undef ptrdiff_t */ 1993 + 1994 +/* Define to a replacement function name for realpath(). */ 1995 +#define realpath rpl_realpath 1996 + 1997 +/* Define to the equivalent of the C99 'restrict' keyword, or to 1998 + nothing if this is not supported. Do not define if restrict is 1999 + supported directly. */ 2000 +#define restrict 2001 +/* Work around a bug in Sun C++: it does not support _Restrict, even 2002 + though the corresponding Sun C compiler does, which causes 2003 + "#define restrict _Restrict" in the previous line. Perhaps some future 2004 + version of Sun C++ will work with _Restrict; if so, it'll probably 2005 + define __RESTRICT, just as Sun C does. */ 2006 +#if defined __SUNPRO_CC && !defined __RESTRICT 2007 +# define _Restrict 2008 +#endif 2009 + 2010 +/* Define to `unsigned int' if <sys/types.h> does not define. */ 2011 +/* #undef size_t */ 2012 + 2013 +/* Define as a signed type of the same size as size_t. */ 2014 +#ifdef _WIN64 2015 +#define ssize_t __int64 2016 +#elif _WIN32 2017 +#define ssize_t __int32 2018 +#endif 2019 + 2020 +/* Define to rpl_strnlen if the replacement function should be used. */ 2021 +#define strnlen rpl_strnlen 2022 + 2023 +/* Define to unsigned long or unsigned long long if <stdint.h> and 2024 + <inttypes.h> don't define. */ 2025 +/* #undef uintmax_t */ 2026 + 2027 +#define __libc_lock_t gl_lock_t 2028 +#define __libc_lock_define gl_lock_define 2029 +#define __libc_lock_define_initialized gl_lock_define_initialized 2030 +#define __libc_lock_init gl_lock_init 2031 +#define __libc_lock_lock gl_lock_lock 2032 +#define __libc_lock_unlock gl_lock_unlock 2033 +#define __libc_lock_recursive_t gl_recursive_lock_t 2034 +#define __libc_lock_define_recursive gl_recursive_lock_define 2035 +#define __libc_lock_define_initialized_recursive gl_recursive_lock_define_initialized 2036 +#define __libc_lock_init_recursive gl_recursive_lock_init 2037 +#define __libc_lock_lock_recursive gl_recursive_lock_lock 2038 +#define __libc_lock_unlock_recursive gl_recursive_lock_unlock 2039 +#if 0 2040 +#define glthread_in_use libintl_thread_in_use 2041 +#define glthread_lock_init libintl_lock_init 2042 +#define glthread_lock_lock libintl_lock_lock 2043 +#define glthread_lock_unlock libintl_lock_unlock 2044 +#define glthread_lock_destroy libintl_lock_destroy 2045 +#define glthread_rwlock_init libintl_rwlock_init 2046 +#define glthread_rwlock_rdlock libintl_rwlock_rdlock 2047 +#define glthread_rwlock_wrlock libintl_rwlock_wrlock 2048 +#define glthread_rwlock_unlock libintl_rwlock_unlock 2049 +#define glthread_rwlock_destroy libintl_rwlock_destroy 2050 +#define glthread_recursive_lock_init libintl_recursive_lock_init 2051 +#define glthread_recursive_lock_lock libintl_recursive_lock_lock 2052 +#define glthread_recursive_lock_unlock libintl_recursive_lock_unlock 2053 +#define glthread_recursive_lock_destroy libintl_recursive_lock_destroy 2054 +#define glthread_once libintl_once 2055 +#define glthread_once_call libintl_once_call 2056 +#define glthread_once_singlethreaded libintl_once_singlethreaded 2057 +#endif 2058 + 2059 + 2060 +/* On Windows, variables that may be in a DLL must be marked specially. */ 2061 +#if (defined _MSC_VER && defined _DLL) && !defined IN_RELOCWRAPPER 2062 +# define DLL_VARIABLE __declspec (dllimport) 2063 +#else 2064 +# define DLL_VARIABLE 2065 +#endif 2066 + 2067 +/* Extra OS/2 (emx+gcc) defines. */ 2068 +#ifdef __EMX__ 2069 +# include "intl/os2compat.h" 2070 +#endif 2071 + 2072 diff --git a/gettext-runtime/intl/libgnuintl.win32.h b/gettext-runtime/intl/libgnuintl.win32.h 2073 new file mode 100644 2074 index 0000000..8ffb22f 2075 --- /dev/null 2076 +++ b/gettext-runtime/intl/libgnuintl.win32.h 2077 @@ -0,0 +1,467 @@ 2078 +/* Message catalogs for internationalization. 2079 + Copyright (C) 1995-1997, 2000-2016, 2018-2020 Free Software Foundation, Inc. 2080 + 2081 + This program is free software: you can redistribute it and/or modify 2082 + it under the terms of the GNU Lesser General Public License as published by 2083 + the Free Software Foundation; either version 2.1 of the License, or 2084 + (at your option) any later version. 2085 + 2086 + This program is distributed in the hope that it will be useful, 2087 + but WITHOUT ANY WARRANTY; without even the implied warranty of 2088 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 2089 + GNU Lesser General Public License for more details. 2090 + 2091 + You should have received a copy of the GNU Lesser General Public License 2092 + along with this program. If not, see <https://www.gnu.org/licenses/>. */ 2093 + 2094 +#ifndef _LIBINTL_H 2095 +#define _LIBINTL_H 1 2096 + 2097 +#if defined(_WIN32) && defined(libintl_EXPORTS) 2098 +#define LIBINTL_DLL_EXPORTED __declspec(dllexport) 2099 +#else 2100 +#define LIBINTL_DLL_EXPORTED 2101 +#endif 2102 + 2103 +#include <locale.h> 2104 +#if (defined __APPLE__ && defined __MACH__) && @HAVE_NEWLOCALE@ 2105 +#include <xlocale.h> 2106 +#endif 2107 + 2108 +/* The LC_MESSAGES locale category is the category used by the functions 2109 + gettext() and dgettext(). It is specified in POSIX, but not in ANSI C. 2110 + On systems that don't define it, use an arbitrary value instead. 2111 + On Solaris, <locale.h> defines __LOCALE_H (or _LOCALE_H in Solaris 2.5) 2112 + then includes <libintl.h> (i.e. this file!) and then only defines 2113 + LC_MESSAGES. To avoid a redefinition warning, don't define LC_MESSAGES 2114 + in this case. */ 2115 +#if !defined LC_MESSAGES && !(defined __LOCALE_H || (defined _LOCALE_H && defined __sun)) 2116 +#define LC_MESSAGES 1729 2117 +#endif 2118 + 2119 +/* We define an additional symbol to signal that we use the GNU 2120 + implementation of gettext. */ 2121 +#define __USE_GNU_GETTEXT 1 2122 + 2123 +/* We define an additional symbol to signal that this version of 2124 + gettext is patched to use UTF-8 paths on Windows. */ 2125 +#define __WIN32_USE_UTF8 1 2126 + 2127 +/* Provide information about the supported file formats. Returns the 2128 + maximum minor revision number supported for a given major revision. */ 2129 +#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 || (major) == 1 ? 1 : -1) 2130 + 2131 +/* Resolve a platform specific conflict on DJGPP. GNU gettext takes 2132 + precedence over _conio_gettext. */ 2133 +#ifdef __DJGPP__ 2134 +#undef gettext 2135 +#endif 2136 + 2137 +#ifdef __cplusplus 2138 +extern "C" { 2139 +#endif 2140 + 2141 +/* Version number: (major<<16) + (minor<<8) + subminor */ 2142 +#define LIBINTL_VERSION 0x001500 2143 +extern LIBINTL_DLL_EXPORTED int libintl_version; 2144 + 2145 +/* We redirect the functions to those prefixed with "libintl_". This is 2146 + necessary, because some systems define gettext/textdomain/... in the C 2147 + library (namely, Solaris 2.4 and newer, and GNU libc 2.0 and newer). 2148 + If we used the unprefixed names, there would be cases where the 2149 + definition in the C library would override the one in the libintl.so 2150 + shared library. Recall that on ELF systems, the symbols are looked 2151 + up in the following order: 2152 + 1. in the executable, 2153 + 2. in the shared libraries specified on the link command line, in order, 2154 + 3. in the dependencies of the shared libraries specified on the link 2155 + command line, 2156 + 4. in the dlopen()ed shared libraries, in the order in which they were 2157 + dlopen()ed. 2158 + The definition in the C library would override the one in libintl.so if 2159 + either 2160 + * -lc is given on the link command line and -lintl isn't, or 2161 + * -lc is given on the link command line before -lintl, or 2162 + * libintl.so is a dependency of a dlopen()ed shared library but not 2163 + linked to the executable at link time. 2164 + Since Solaris gettext() behaves differently than GNU gettext(), this 2165 + would be unacceptable. 2166 + 2167 + The redirection happens by default through macros in C, so that &gettext 2168 + is independent of the compilation unit, but through inline functions in 2169 + C++, in order not to interfere with the name mangling of class fields or 2170 + class methods called 'gettext'. */ 2171 + 2172 +/* The user can define _INTL_REDIRECT_INLINE or _INTL_REDIRECT_MACROS. 2173 + If he doesn't, we choose the method. A third possible method is 2174 + _INTL_REDIRECT_ASM, supported only by GCC. */ 2175 +#if !(defined _INTL_REDIRECT_INLINE || defined _INTL_REDIRECT_MACROS) 2176 +#if defined __GNUC__ && __GNUC__ >= 2 && !(defined __APPLE_CC__ && __APPLE_CC__ > 1) && !defined __MINGW32__ && !(__GNUC__ == 2 && defined _AIX) && (defined __STDC__ || defined __cplusplus) 2177 +#define _INTL_REDIRECT_ASM 2178 +#else 2179 +#ifdef __cplusplus 2180 +#define _INTL_REDIRECT_INLINE 2181 +#else 2182 +#define _INTL_REDIRECT_MACROS 2183 +#endif 2184 +#endif 2185 +#endif 2186 +/* Auxiliary macros. */ 2187 +#ifdef _INTL_REDIRECT_ASM 2188 +#define _INTL_ASM(cname) __asm__(_INTL_ASMNAME(__USER_LABEL_PREFIX__, #cname)) 2189 +#define _INTL_ASMNAME(prefix, cnamestring) _INTL_STRINGIFY(prefix) cnamestring 2190 +#define _INTL_STRINGIFY(prefix) #prefix 2191 +#else 2192 +#define _INTL_ASM(cname) 2193 +#endif 2194 + 2195 +/* _INTL_MAY_RETURN_STRING_ARG(n) declares that the given function may return 2196 + its n-th argument literally. This enables GCC to warn for example about 2197 + printf (gettext ("foo %y")). */ 2198 +#if defined __GNUC__ && __GNUC__ >= 3 && !(defined __APPLE_CC__ && __APPLE_CC__ > 1 && !(defined __clang__ && __clang__ && __clang_major__ >= 3) && defined __cplusplus) 2199 +#define _INTL_MAY_RETURN_STRING_ARG(n) __attribute__((__format_arg__(n))) 2200 +#else 2201 +#define _INTL_MAY_RETURN_STRING_ARG(n) 2202 +#endif 2203 + 2204 +/* Look up MSGID in the current default message catalog for the current 2205 + LC_MESSAGES locale. If not found, returns MSGID itself (the default 2206 + text). */ 2207 +#ifdef _INTL_REDIRECT_INLINE 2208 +extern LIBINTL_DLL_EXPORTED char *libintl_gettext(const char *__msgid) _INTL_MAY_RETURN_STRING_ARG(1); 2209 +static inline _INTL_MAY_RETURN_STRING_ARG(1) char *gettext(const char *__msgid) 2210 +{ 2211 + return libintl_gettext(__msgid); 2212 +} 2213 +#else 2214 +#ifdef _INTL_REDIRECT_MACROS 2215 +#define gettext libintl_gettext 2216 +#endif 2217 +extern LIBINTL_DLL_EXPORTED char *gettext(const char *__msgid) _INTL_ASM(libintl_gettext) _INTL_MAY_RETURN_STRING_ARG(1); 2218 +#endif 2219 + 2220 +/* Look up MSGID in the DOMAINNAME message catalog for the current 2221 + LC_MESSAGES locale. */ 2222 +#ifdef _INTL_REDIRECT_INLINE 2223 +extern LIBINTL_DLL_EXPORTED char *libintl_dgettext(const char *__domainname, const char *__msgid) _INTL_MAY_RETURN_STRING_ARG(2); 2224 +static inline _INTL_MAY_RETURN_STRING_ARG(2) char *dgettext(const char *__domainname, const char *__msgid) 2225 +{ 2226 + return libintl_dgettext(__domainname, __msgid); 2227 +} 2228 +#else 2229 +#ifdef _INTL_REDIRECT_MACROS 2230 +#define dgettext libintl_dgettext 2231 +#endif 2232 +extern LIBINTL_DLL_EXPORTED char *dgettext(const char *__domainname, const char *__msgid) _INTL_ASM(libintl_dgettext) _INTL_MAY_RETURN_STRING_ARG(2); 2233 +#endif 2234 + 2235 +/* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY 2236 + locale. */ 2237 +#ifdef _INTL_REDIRECT_INLINE 2238 +extern LIBINTL_DLL_EXPORTED char *libintl_dcgettext(const char *__domainname, const char *__msgid, int __category) _INTL_MAY_RETURN_STRING_ARG(2); 2239 +static inline _INTL_MAY_RETURN_STRING_ARG(2) char *dcgettext(const char *__domainname, const char *__msgid, int __category) 2240 +{ 2241 + return libintl_dcgettext(__domainname, __msgid, __category); 2242 +} 2243 +#else 2244 +#ifdef _INTL_REDIRECT_MACROS 2245 +#define dcgettext libintl_dcgettext 2246 +#endif 2247 +extern LIBINTL_DLL_EXPORTED char *dcgettext(const char *__domainname, const char *__msgid, int __category) _INTL_ASM(libintl_dcgettext) _INTL_MAY_RETURN_STRING_ARG(2); 2248 +#endif 2249 + 2250 +/* Similar to 'gettext' but select the plural form corresponding to the 2251 + number N. */ 2252 +#ifdef _INTL_REDIRECT_INLINE 2253 +extern LIBINTL_DLL_EXPORTED char *libintl_ngettext(const char *__msgid1, const char *__msgid2, unsigned long int __n) _INTL_MAY_RETURN_STRING_ARG(1) _INTL_MAY_RETURN_STRING_ARG(2); 2254 +static inline _INTL_MAY_RETURN_STRING_ARG(1) _INTL_MAY_RETURN_STRING_ARG(2) char *ngettext(const char *__msgid1, const char *__msgid2, unsigned long int __n) 2255 +{ 2256 + return libintl_ngettext(__msgid1, __msgid2, __n); 2257 +} 2258 +#else 2259 +#ifdef _INTL_REDIRECT_MACROS 2260 +#define ngettext libintl_ngettext 2261 +#endif 2262 +extern LIBINTL_DLL_EXPORTED char *ngettext(const char *__msgid1, const char *__msgid2, unsigned long int __n) _INTL_ASM(libintl_ngettext) _INTL_MAY_RETURN_STRING_ARG(1) _INTL_MAY_RETURN_STRING_ARG(2); 2263 +#endif 2264 + 2265 +/* Similar to 'dgettext' but select the plural form corresponding to the 2266 + number N. */ 2267 +#ifdef _INTL_REDIRECT_INLINE 2268 +extern LIBINTL_DLL_EXPORTED char *libintl_dngettext(const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n) _INTL_MAY_RETURN_STRING_ARG(2) _INTL_MAY_RETURN_STRING_ARG(3); 2269 +static inline _INTL_MAY_RETURN_STRING_ARG(2) _INTL_MAY_RETURN_STRING_ARG(3) char *dngettext(const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n) 2270 +{ 2271 + return libintl_dngettext(__domainname, __msgid1, __msgid2, __n); 2272 +} 2273 +#else 2274 +#ifdef _INTL_REDIRECT_MACROS 2275 +#define dngettext libintl_dngettext 2276 +#endif 2277 +extern LIBINTL_DLL_EXPORTED char *dngettext(const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n) _INTL_ASM(libintl_dngettext) _INTL_MAY_RETURN_STRING_ARG(2) _INTL_MAY_RETURN_STRING_ARG(3); 2278 +#endif 2279 + 2280 +/* Similar to 'dcgettext' but select the plural form corresponding to the 2281 + number N. */ 2282 +#ifdef _INTL_REDIRECT_INLINE 2283 +extern LIBINTL_DLL_EXPORTED char *libintl_dcngettext(const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n, int __category) _INTL_MAY_RETURN_STRING_ARG(2) _INTL_MAY_RETURN_STRING_ARG(3); 2284 +static inline _INTL_MAY_RETURN_STRING_ARG(2) _INTL_MAY_RETURN_STRING_ARG(3) char *dcngettext(const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n, int __category) 2285 +{ 2286 + return libintl_dcngettext(__domainname, __msgid1, __msgid2, __n, __category); 2287 +} 2288 +#else 2289 +#ifdef _INTL_REDIRECT_MACROS 2290 +#define dcngettext libintl_dcngettext 2291 +#endif 2292 +extern LIBINTL_DLL_EXPORTED char *dcngettext(const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n, int __category) _INTL_ASM(libintl_dcngettext) _INTL_MAY_RETURN_STRING_ARG(2) 2293 + _INTL_MAY_RETURN_STRING_ARG(3); 2294 +#endif 2295 + 2296 +#ifndef IN_LIBGLOCALE 2297 + 2298 +/* Set the current default message catalog to DOMAINNAME. 2299 + If DOMAINNAME is null, return the current default. 2300 + If DOMAINNAME is "", reset to the default of "messages". */ 2301 +#ifdef _INTL_REDIRECT_INLINE 2302 +extern LIBINTL_DLL_EXPORTED char *libintl_textdomain(const char *__domainname); 2303 +static inline char *textdomain(const char *__domainname) 2304 +{ 2305 + return libintl_textdomain(__domainname); 2306 +} 2307 +#else 2308 +#ifdef _INTL_REDIRECT_MACROS 2309 +#define textdomain libintl_textdomain 2310 +#endif 2311 +extern LIBINTL_DLL_EXPORTED char *textdomain(const char *__domainname) _INTL_ASM(libintl_textdomain); 2312 +#endif 2313 + 2314 +/* Specify that the DOMAINNAME message catalog will be found 2315 + in DIRNAME rather than in the system locale data base. */ 2316 +#ifdef _INTL_REDIRECT_INLINE 2317 +extern LIBINTL_DLL_EXPORTED char *libintl_bindtextdomain(const char *__domainname, const char *__dirname); 2318 +static inline char *bindtextdomain(const char *__domainname, const char *__dirname) 2319 +{ 2320 + return libintl_bindtextdomain(__domainname, __dirname); 2321 +} 2322 +#else 2323 +#ifdef _INTL_REDIRECT_MACROS 2324 +#define bindtextdomain libintl_bindtextdomain 2325 +#endif 2326 +extern LIBINTL_DLL_EXPORTED char *bindtextdomain(const char *__domainname, const char *__dirname) _INTL_ASM(libintl_bindtextdomain); 2327 +#endif 2328 + 2329 +#if defined _WIN32 && !defined __CYGWIN__ 2330 +/* Specify that the DOMAINNAME message catalog will be found 2331 + in WDIRNAME rather than in the system locale data base. */ 2332 +#ifdef _INTL_REDIRECT_INLINE 2333 +extern LIBINTL_DLL_EXPORTED wchar_t *libintl_wbindtextdomain(const char *__domainname, const wchar_t *__wdirname); 2334 +static inline wchar_t *wbindtextdomain(const char *__domainname, const wchar_t *__wdirname) 2335 +{ 2336 + return libintl_wbindtextdomain(__domainname, __wdirname); 2337 +} 2338 +#else 2339 +#ifdef _INTL_REDIRECT_MACROS 2340 +#define wbindtextdomain libintl_wbindtextdomain 2341 +#endif 2342 +extern LIBINTL_DLL_EXPORTED wchar_t *wbindtextdomain(const char *__domainname, const wchar_t *__wdirname) _INTL_ASM(libintl_wbindtextdomain); 2343 +#endif 2344 +#endif 2345 + 2346 +/* Specify the character encoding in which the messages from the 2347 + DOMAINNAME message catalog will be returned. */ 2348 +#ifdef _INTL_REDIRECT_INLINE 2349 +extern LIBINTL_DLL_EXPORTED char *libintl_bind_textdomain_codeset(const char *__domainname, const char *__codeset); 2350 +static inline char *bind_textdomain_codeset(const char *__domainname, const char *__codeset) 2351 +{ 2352 + return libintl_bind_textdomain_codeset(__domainname, __codeset); 2353 +} 2354 +#else 2355 +#ifdef _INTL_REDIRECT_MACROS 2356 +#define bind_textdomain_codeset libintl_bind_textdomain_codeset 2357 +#endif 2358 +extern LIBINTL_DLL_EXPORTED char *bind_textdomain_codeset(const char *__domainname, const char *__codeset) _INTL_ASM(libintl_bind_textdomain_codeset); 2359 +#endif 2360 + 2361 +#endif /* IN_LIBGLOCALE */ 2362 + 2363 +/* Support for format strings with positions in *printf(), following the 2364 + POSIX/XSI specification. 2365 + Note: These replacements for the *printf() functions are visible only 2366 + in source files that #include <libintl.h> or #include "gettext.h". 2367 + Packages that use *printf() in source files that don't refer to _() 2368 + or gettext() but for which the format string could be the return value 2369 + of _() or gettext() need to add this #include. Oh well. */ 2370 + 2371 +#if !@HAVE_POSIX_PRINTF@ 2372 + 2373 +#include <stddef.h> 2374 +#include <stdio.h> 2375 + 2376 +/* Get va_list. */ 2377 +#if (defined __STDC__ && __STDC__) || defined __cplusplus || defined _MSC_VER 2378 +#include <stdarg.h> 2379 +#else 2380 +#include <varargs.h> 2381 +#endif 2382 + 2383 +#if !(defined fprintf && defined _GL_STDIO_H) /* don't override gnulib */ 2384 +#undef fprintf 2385 +#define fprintf libintl_fprintf 2386 +extern LIBINTL_DLL_EXPORTED int fprintf(FILE *, const char *, ...); 2387 +#endif 2388 +#if !(defined vfprintf && defined _GL_STDIO_H) /* don't override gnulib */ 2389 +#undef vfprintf 2390 +#define vfprintf libintl_vfprintf 2391 +extern LIBINTL_DLL_EXPORTED int vfprintf(FILE *, const char *, va_list); 2392 +#endif 2393 + 2394 +#if !(defined printf && defined _GL_STDIO_H) /* don't override gnulib */ 2395 +#undef printf 2396 +#if defined __NetBSD__ || defined __BEOS__ || defined __CYGWIN__ || defined __MINGW32__ 2397 +/* Don't break __attribute__((format(printf,M,N))). 2398 + This redefinition is only possible because the libc in NetBSD, Cygwin, 2399 + mingw does not have a function __printf__. 2400 + Alternatively, we could have done this redirection only when compiling with 2401 + __GNUC__, together with a symbol redirection: 2402 + extern LIBINTL_DLL_EXPORTED int printf (const char *, ...) 2403 + __asm__ (#__USER_LABEL_PREFIX__ "libintl_printf"); 2404 + But doing it now would introduce a binary incompatibility with already 2405 + distributed versions of libintl on these systems. */ 2406 +#define libintl_printf __printf__ 2407 +#endif 2408 +#define printf libintl_printf 2409 +extern LIBINTL_DLL_EXPORTED int printf(const char *, ...); 2410 +#endif 2411 +#if !(defined vprintf && defined _GL_STDIO_H) /* don't override gnulib */ 2412 +#undef vprintf 2413 +#define vprintf libintl_vprintf 2414 +extern LIBINTL_DLL_EXPORTED int vprintf(const char *, va_list); 2415 +#endif 2416 + 2417 +#if !(defined sprintf && defined _GL_STDIO_H) /* don't override gnulib */ 2418 +#undef sprintf 2419 +#define sprintf libintl_sprintf 2420 +extern LIBINTL_DLL_EXPORTED int sprintf(char *, const char *, ...); 2421 +#endif 2422 +#if !(defined vsprintf && defined _GL_STDIO_H) /* don't override gnulib */ 2423 +#undef vsprintf 2424 +#define vsprintf libintl_vsprintf 2425 +extern LIBINTL_DLL_EXPORTED int vsprintf(char *, const char *, va_list); 2426 +#endif 2427 + 2428 +#if @HAVE_SNPRINTF@ 2429 + 2430 +#if !(defined snprintf && defined _GL_STDIO_H) /* don't override gnulib */ 2431 +#undef snprintf 2432 +#define snprintf libintl_snprintf 2433 +extern LIBINTL_DLL_EXPORTED int snprintf(char *, size_t, const char *, ...); 2434 +#endif 2435 +#if !(defined vsnprintf && defined _GL_STDIO_H) /* don't override gnulib */ 2436 +#undef vsnprintf 2437 +#define vsnprintf libintl_vsnprintf 2438 +extern LIBINTL_DLL_EXPORTED int vsnprintf(char *, size_t, const char *, va_list); 2439 +#endif 2440 + 2441 +#endif 2442 + 2443 +#if @HAVE_ASPRINTF@ 2444 + 2445 +#if !(defined asprintf && defined _GL_STDIO_H) /* don't override gnulib */ 2446 +#undef asprintf 2447 +#define asprintf libintl_asprintf 2448 +extern LIBINTL_DLL_EXPORTED int asprintf(char **, const char *, ...); 2449 +#endif 2450 +#if !(defined vasprintf && defined _GL_STDIO_H) /* don't override gnulib */ 2451 +#undef vasprintf 2452 +#define vasprintf libintl_vasprintf 2453 +extern LIBINTL_DLL_EXPORTED int vasprintf(char **, const char *, va_list); 2454 +#endif 2455 + 2456 +#endif 2457 + 2458 +#if @HAVE_WPRINTF@ 2459 + 2460 +#undef fwprintf 2461 +#define fwprintf libintl_fwprintf 2462 +extern LIBINTL_DLL_EXPORTED int fwprintf(FILE *, const wchar_t *, ...); 2463 +#undef vfwprintf 2464 +#define vfwprintf libintl_vfwprintf 2465 +extern LIBINTL_DLL_EXPORTED int vfwprintf(FILE *, const wchar_t *, va_list); 2466 + 2467 +#undef wprintf 2468 +#define wprintf libintl_wprintf 2469 +extern LIBINTL_DLL_EXPORTED int wprintf(const wchar_t *, ...); 2470 +#undef vwprintf 2471 +#define vwprintf libintl_vwprintf 2472 +extern LIBINTL_DLL_EXPORTED int vwprintf(const wchar_t *, va_list); 2473 + 2474 +#undef swprintf 2475 +#define swprintf libintl_swprintf 2476 +extern LIBINTL_DLL_EXPORTED int swprintf(wchar_t *, size_t, const wchar_t *, ...); 2477 +#undef vswprintf 2478 +#define vswprintf libintl_vswprintf 2479 +extern LIBINTL_DLL_EXPORTED int vswprintf(wchar_t *, size_t, const wchar_t *, va_list); 2480 + 2481 +#endif 2482 + 2483 +#endif 2484 + 2485 +/* Support for retrieving the name of a locale_t object. */ 2486 +#if @HAVE_NAMELESS_LOCALES@ 2487 + 2488 +#ifndef GNULIB_defined_newlocale /* don't override gnulib */ 2489 +#undef newlocale 2490 +#define newlocale libintl_newlocale 2491 +extern locale_t newlocale(int, const char *, locale_t); 2492 +#endif 2493 + 2494 +#ifndef GNULIB_defined_duplocale /* don't override gnulib */ 2495 +#undef duplocale 2496 +#define duplocale libintl_duplocale 2497 +extern locale_t duplocale(locale_t); 2498 +#endif 2499 + 2500 +#ifndef GNULIB_defined_freelocale /* don't override gnulib */ 2501 +#undef freelocale 2502 +#define freelocale libintl_freelocale 2503 +extern void freelocale(locale_t); 2504 +#endif 2505 + 2506 +#endif 2507 + 2508 +/* Support for the locale chosen by the user. */ 2509 +#if (defined __APPLE__ && defined __MACH__) || defined _WIN32 || defined __CYGWIN__ 2510 + 2511 +#ifndef GNULIB_defined_setlocale /* don't override gnulib */ 2512 +#undef setlocale 2513 +#define setlocale libintl_setlocale 2514 +extern LIBINTL_DLL_EXPORTED char *setlocale(int, const char *); 2515 +#endif 2516 + 2517 +#if @HAVE_NEWLOCALE@ 2518 + 2519 +#undef newlocale 2520 +#define newlocale libintl_newlocale 2521 +/* Declare newlocale() only if the system headers define the 'locale_t' type. */ 2522 +#if !(defined __CYGWIN__ && !defined LC_ALL_MASK) 2523 +extern locale_t newlocale(int, const char *, locale_t); 2524 +#endif 2525 + 2526 +#endif 2527 + 2528 +#endif 2529 + 2530 +/* Support for relocatable packages. */ 2531 + 2532 +/* Sets the original and the current installation prefix of the package. 2533 + Relocation simply replaces a pathname starting with the original prefix 2534 + by the corresponding pathname with the current prefix instead. Both 2535 + prefixes should be directory names without trailing slash (i.e. use "" 2536 + instead of "/"). */ 2537 +#define libintl_set_relocation_prefix libintl_set_relocation_prefix 2538 +extern LIBINTL_DLL_EXPORTED void libintl_set_relocation_prefix(const char *orig_prefix, const char *curr_prefix); 2539 + 2540 +#ifdef __cplusplus 2541 +} 2542 +#endif 2543 + 2544 +#endif /* libintl.h */ 2545 diff --git a/gettext-runtime/intl/libintl.rc b/gettext-runtime/intl/libintl.rc 2546 deleted file mode 100644 2547 index 2522418..0000000 2548 --- a/gettext-runtime/intl/libintl.rc 2549 +++ /dev/null 2550 @@ -1,38 +0,0 @@ 2551 -/* Resources for intl.dll */ 2552 - 2553 -#include <winver.h> 2554 - 2555 -VS_VERSION_INFO VERSIONINFO 2556 - FILEVERSION PACKAGE_VERSION_MAJOR,PACKAGE_VERSION_MINOR,PACKAGE_VERSION_SUBMINOR,0 2557 - PRODUCTVERSION PACKAGE_VERSION_MAJOR,PACKAGE_VERSION_MINOR,PACKAGE_VERSION_SUBMINOR,0 2558 - FILEFLAGSMASK 0x3fL /* VS_FFI_FILEFLAGSMASK */ 2559 -#ifdef _DEBUG 2560 - FILEFLAGS 0x1L /* VS_FF_DEBUG */ 2561 -#else 2562 - FILEFLAGS 0x0L 2563 -#endif 2564 - FILEOS 0x10004L /* VOS_DOS_WINDOWS32 */ 2565 - FILETYPE 0x2L /* VFT_DLL */ 2566 - FILESUBTYPE 0x0L /* VFT2_UNKNOWN */ 2567 -BEGIN 2568 - BLOCK "StringFileInfo" 2569 - BEGIN 2570 - BLOCK "04090000" /* Lang = US English, Charset = ASCII */ 2571 - BEGIN 2572 - VALUE "Comments", "This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License. You should have received a copy of the GNU Lesser General Public License along with this library; if not, see <https://www.gnu.org/licenses/>.\0" 2573 - VALUE "CompanyName", "Free Software Foundation\0" 2574 - VALUE "FileDescription", "LGPLed libintl for Windows\0" 2575 - VALUE "FileVersion", PACKAGE_VERSION_STRING "\0" 2576 - VALUE "InternalName", "intl.dll\0" 2577 - VALUE "LegalCopyright", "Copyright (C) 1995-2019\0" 2578 - VALUE "LegalTrademarks", "\0" 2579 - VALUE "OriginalFilename", "intl.dll\0" 2580 - VALUE "ProductName", "GNU libintl: accessing NLS message catalogs\0" 2581 - VALUE "ProductVersion", PACKAGE_VERSION_STRING "\0" 2582 - END 2583 - END 2584 - BLOCK "VarFileInfo" 2585 - BEGIN 2586 - VALUE "Translation", 0x0409, 0 /* US English, ASCII */ 2587 - END 2588 -END 2589 diff --git a/gettext-runtime/intl/libintl.rc.in b/gettext-runtime/intl/libintl.rc.in 2590 new file mode 100644 2591 index 0000000..f213dc6 2592 --- /dev/null 2593 +++ b/gettext-runtime/intl/libintl.rc.in 2594 @@ -0,0 +1,38 @@ 2595 +/* Resources for intl.dll */ 2596 + 2597 +#include <winver.h> 2598 + 2599 +VS_VERSION_INFO VERSIONINFO 2600 + FILEVERSION PACKAGE_VERSION_MAJOR,PACKAGE_VERSION_MINOR,PACKAGE_VERSION_SUBMINOR,0 2601 + PRODUCTVERSION PACKAGE_VERSION_MAJOR,PACKAGE_VERSION_MINOR,PACKAGE_VERSION_SUBMINOR,0 2602 + FILEFLAGSMASK 0x3fL /* VS_FFI_FILEFLAGSMASK */ 2603 +#ifdef _DEBUG 2604 + FILEFLAGS 0x1L /* VS_FF_DEBUG */ 2605 +#else 2606 + FILEFLAGS 0x0L 2607 +#endif 2608 + FILEOS 0x10004L /* VOS_DOS_WINDOWS32 */ 2609 + FILETYPE 0x2L /* VFT_DLL */ 2610 + FILESUBTYPE 0x0L /* VFT2_UNKNOWN */ 2611 +BEGIN 2612 + BLOCK "StringFileInfo" 2613 + BEGIN 2614 + BLOCK "04090000" /* Lang = US English, Charset = ASCII */ 2615 + BEGIN 2616 + VALUE "Comments", "This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License. You should have received a copy of the GNU Lesser General Public License along with this library; if not, see <https://www.gnu.org/licenses/>.\0" 2617 + VALUE "CompanyName", "Free Software Foundation\0" 2618 + VALUE "FileDescription", "LGPLed libintl for Windows\0" 2619 + VALUE "FileVersion", "@PACKAGE_VERSION_STRING@\0" 2620 + VALUE "InternalName", "intl.dll\0" 2621 + VALUE "LegalCopyright", "Copyright (C) 1995-2019\0" 2622 + VALUE "LegalTrademarks", "\0" 2623 + VALUE "OriginalFilename", "intl.dll\0" 2624 + VALUE "ProductName", "GNU libintl: accessing NLS message catalogs\0" 2625 + VALUE "ProductVersion", "@PACKAGE_VERSION_STRING@\0" 2626 + END 2627 + END 2628 + BLOCK "VarFileInfo" 2629 + BEGIN 2630 + VALUE "Translation", 0x0409, 0 /* US English, ASCII */ 2631 + END 2632 +END 2633 -- 2634 2.31.1.windows.1 2635