diff options
Diffstat (limited to 'src/config.h')
-rw-r--r-- | src/config.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h new file mode 100644 index 0000000..7289447 --- /dev/null +++ b/src/config.h @@ -0,0 +1,25 @@ +//===----------------------------- config.h -------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +// +// Defines macros used within the libc++abi project. +// +//===----------------------------------------------------------------------===// + + +#ifndef LIBCXXABI_CONFIG_H +#define LIBCXXABI_CONFIG_H + +#include <unistd.h> + +#if defined(_POSIX_THREADS) && _POSIX_THREADS > 0 +# define LIBCXXABI_SINGLE_THREADED 0 +#else +# define LIBCXXABI_SINGLE_THREADED 1 +#endif + +#endif // LIBCXXABI_CONFIG_H |