Always use __cdecl as the calling convention for the Embarcadero C++ clang-based compilers

This commit is contained in:
Edward Diener
2020-04-19 15:29:03 -04:00
parent cc09733d03
commit 31646aefa7
2 changed files with 7 additions and 2 deletions

View File

@ -17,7 +17,7 @@
* using a C++ Builder closure as a callback. * using a C++ Builder closure as a callback.
*/ */
#ifdef __BORLANDC__ && !defined(__clang__) #if defined(__BORLANDC__) && !defined(__clang__)
#include <boost/regex.hpp> #include <boost/regex.hpp>
#include <string> #include <string>

View File

@ -278,10 +278,15 @@
# define BOOST_REGEX_CCALL __cdecl # define BOOST_REGEX_CCALL __cdecl
#endif #endif
#if defined(__BORLANDC__) && !defined(__clang__) && !defined(BOOST_DISABLE_WIN32) #if defined(__BORLANDC__) && !defined(BOOST_DISABLE_WIN32)
#if defined(__clang__)
# define BOOST_REGEX_CALL __cdecl
# define BOOST_REGEX_CCALL __cdecl
#else
# define BOOST_REGEX_CALL __fastcall # define BOOST_REGEX_CALL __fastcall
# define BOOST_REGEX_CCALL __stdcall # define BOOST_REGEX_CCALL __stdcall
#endif #endif
#endif
#ifndef BOOST_REGEX_CALL #ifndef BOOST_REGEX_CALL
# define BOOST_REGEX_CALL # define BOOST_REGEX_CALL