/* This file is part of the 'stringi' project. * Copyright (c) 2013-2021, Marek Gagolewski * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * 3. Neither the name of the copyright holder nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef uconfig_local_h #define uconfig_local_h #define STRI_ICU_FOUND @ICU_FOUND@ /* This caused a serious bug on Solaris, see #94: // #define U_DISABLE_RENAMING 1 // do not turn on! */ #if !STRI_ICU_FOUND // if compiling ICU from sources, use: /* fixes #335 (and parts of #314 that were not reverted by #335) */ #define U_LIB_SUFFIX_C_NAME _stringi #ifdef U_CHARSET_IS_UTF8 #undef U_CHARSET_IS_UTF8 #endif #define U_CHARSET_IS_UTF8 0 #endif #ifdef __cplusplus #ifdef STRINGI_MAX_ALIGN_T_STD /* #431: Check for std::max_align_t GCC Bug 56019 - max_align_t should be in std namespace https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56019 */ #include extern "C++" { namespace std { using ::max_align_t; } } #endif #endif /* localtime_r is not a C++98 nor C99 function: it is POSIX. Solaris has it, but only for C (thanks to Kurt Hornik for pointing this out) */ /* #if U_PLATFORM == U_PF_SOLARIS || defined(__SUNPRO_CC) */ /*extern struct tm *localtime_r(const time_t *, struct tm *); */ #ifndef _REENTRANT #define _REENTRANT 1 #endif /* #endif */ #endif