Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 09:59:23

0001 /*
0002  *
0003  * Copyright (c) 1998-2002
0004  * John Maddock
0005  *
0006  * Use, modification and distribution are subject to the 
0007  * Boost Software License, Version 1.0. (See accompanying file 
0008  * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0009  *
0010  */
0011  
0012  /*
0013   *   LOCATION:    see http://www.boost.org for most recent version.
0014   *   FILE         boost/regex/config/borland.hpp
0015   *   VERSION      see <boost/version.hpp>
0016   *   DESCRIPTION: regex borland-specific config setup.
0017   */
0018 
0019 
0020 #if defined(__BORLANDC__) && !defined(__clang__)
0021 #  if (__BORLANDC__ == 0x550) || (__BORLANDC__ == 0x551)
0022       // problems with std::basic_string and dll RTL:
0023 #     if defined(_RTLDLL) && defined(_RWSTD_COMPILE_INSTANTIATE)
0024 #        ifdef BOOST_REGEX_BUILD_DLL
0025 #           error _RWSTD_COMPILE_INSTANTIATE must not be defined when building regex++ as a DLL
0026 #        else
0027 #           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!!")
0028 #        endif
0029 #     endif
0030 #     ifndef _RTLDLL
0031          // this is harmless for a staic link:
0032 #        define _RWSTD_COMPILE_INSTANTIATE
0033 #     endif
0034       // external templates cause problems for some reason:
0035 #     define BOOST_REGEX_NO_EXTERNAL_TEMPLATES
0036 #  endif
0037 #  if (__BORLANDC__ <= 0x540) && !defined(BOOST_REGEX_NO_LIB) && !defined(_NO_VCL)
0038       // C++ Builder 4 and earlier, we can't tell whether we should be using
0039       // the VCL runtime or not, do a static link instead:
0040 #     define BOOST_REGEX_STATIC_LINK
0041 #  endif
0042    //
0043    // VCL support:
0044    // if we're building a console app then there can't be any VCL (can there?)
0045 #  if !defined(__CONSOLE__) && !defined(_NO_VCL)
0046 #     define BOOST_REGEX_USE_VCL
0047 #  endif
0048    //
0049    // if this isn't Win32 then don't automatically select link
0050    // libraries:
0051    //
0052 #  ifndef _Windows
0053 #     ifndef BOOST_REGEX_NO_LIB
0054 #        define BOOST_REGEX_NO_LIB
0055 #     endif
0056 #     ifndef BOOST_REGEX_STATIC_LINK
0057 #        define BOOST_REGEX_STATIC_LINK
0058 #     endif
0059 #  endif
0060 
0061 #if __BORLANDC__ < 0x600
0062 //
0063 // string workarounds:
0064 //
0065 #include <cstring>
0066 #undef strcmp
0067 #undef strcpy
0068 #endif
0069 
0070 #endif
0071 
0072