Embarcadero C++ clang-based compilers have chdir and dup2 but not _chdir and _dup2.

This commit is contained in:
Edward Diener
2020-04-05 15:56:42 -04:00
parent e680a13d8a
commit 2c70a870d9

View File

@ -111,6 +111,18 @@
# endif # endif
#endif /* defined(BOOST_EMBTC) */ #endif /* defined(BOOST_EMBTC) */
#if defined(BOOST_EMBTC_WINDOWS)
#if !defined(_chdir)
#define _chdir(x) chdir(x)
#endif
#if !defined(_dup2)
#define _dup2(x,y) dup2(x,y)
#endif
#endif
# undef BOOST_COMPILER # undef BOOST_COMPILER
# define BOOST_COMPILER "Embarcadero-Clang C++ version " BOOST_STRINGIZE(__CODEGEARC__) " clang: " __clang_version__ # define BOOST_COMPILER "Embarcadero-Clang C++ version " BOOST_STRINGIZE(__CODEGEARC__) " clang: " __clang_version__
// # define __CODEGEARC_CLANG__ __CODEGEARC__ // # define __CODEGEARC_CLANG__ __CODEGEARC__