annotate DEPENDENCIES/generic/include/boost/regex/config/borland.hpp @ 125:34e428693f5d vext

Vext -> Repoint
author Chris Cannam
date Thu, 14 Jun 2018 11:15:39 +0100
parents 2665513ce2d3
children
rev   line source
Chris@16 1 /*
Chris@16 2 *
Chris@16 3 * Copyright (c) 1998-2002
Chris@16 4 * John Maddock
Chris@16 5 *
Chris@16 6 * Use, modification and distribution are subject to the
Chris@16 7 * Boost Software License, Version 1.0. (See accompanying file
Chris@16 8 * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@16 9 *
Chris@16 10 */
Chris@16 11
Chris@16 12 /*
Chris@16 13 * LOCATION: see http://www.boost.org for most recent version.
Chris@16 14 * FILE boost/regex/config/borland.hpp
Chris@16 15 * VERSION see <boost/version.hpp>
Chris@16 16 * DESCRIPTION: regex borland-specific config setup.
Chris@16 17 */
Chris@16 18
Chris@16 19
Chris@16 20 #if defined(__BORLANDC__)
Chris@16 21 # if (__BORLANDC__ == 0x550) || (__BORLANDC__ == 0x551)
Chris@16 22 // problems with std::basic_string and dll RTL:
Chris@16 23 # if defined(_RTLDLL) && defined(_RWSTD_COMPILE_INSTANTIATE)
Chris@16 24 # ifdef BOOST_REGEX_BUILD_DLL
Chris@16 25 # error _RWSTD_COMPILE_INSTANTIATE must not be defined when building regex++ as a DLL
Chris@16 26 # else
Chris@16 27 # pragma message("Defining _RWSTD_COMPILE_INSTANTIATE when linking to the DLL version of the RTL may produce memory corruption problems in std::basic_string, as a result of separate versions of basic_string's static data in the RTL and you're exe/dll: be warned!!")
Chris@16 28 # endif
Chris@16 29 # endif
Chris@16 30 # ifndef _RTLDLL
Chris@16 31 // this is harmless for a staic link:
Chris@16 32 # define _RWSTD_COMPILE_INSTANTIATE
Chris@16 33 # endif
Chris@16 34 // external templates cause problems for some reason:
Chris@16 35 # define BOOST_REGEX_NO_EXTERNAL_TEMPLATES
Chris@16 36 # endif
Chris@16 37 # if (__BORLANDC__ <= 0x540) && !defined(BOOST_REGEX_NO_LIB) && !defined(_NO_VCL)
Chris@16 38 // C++ Builder 4 and earlier, we can't tell whether we should be using
Chris@16 39 // the VCL runtime or not, do a static link instead:
Chris@16 40 # define BOOST_REGEX_STATIC_LINK
Chris@16 41 # endif
Chris@16 42 //
Chris@16 43 // VCL support:
Chris@16 44 // if we're building a console app then there can't be any VCL (can there?)
Chris@16 45 # if !defined(__CONSOLE__) && !defined(_NO_VCL)
Chris@16 46 # define BOOST_REGEX_USE_VCL
Chris@16 47 # endif
Chris@16 48 //
Chris@16 49 // if this isn't Win32 then don't automatically select link
Chris@16 50 // libraries:
Chris@16 51 //
Chris@16 52 # ifndef _Windows
Chris@16 53 # ifndef BOOST_REGEX_NO_LIB
Chris@16 54 # define BOOST_REGEX_NO_LIB
Chris@16 55 # endif
Chris@16 56 # ifndef BOOST_REGEX_STATIC_LINK
Chris@16 57 # define BOOST_REGEX_STATIC_LINK
Chris@16 58 # endif
Chris@16 59 # endif
Chris@16 60
Chris@16 61 #if __BORLANDC__ < 0x600
Chris@16 62 //
Chris@16 63 // string workarounds:
Chris@16 64 //
Chris@16 65 #include <cstring>
Chris@16 66 #undef strcmp
Chris@16 67 #undef strcpy
Chris@16 68 #endif
Chris@16 69
Chris@16 70 #endif
Chris@16 71
Chris@16 72