Home | History | Annotate | Download | only in src
      1 //===----------------------------- config.h -------------------------------===//
      2 //
      3 //                     The LLVM Compiler Infrastructure
      4 //
      5 // This file is dual licensed under the MIT and the University of Illinois Open
      6 // Source Licenses. See LICENSE.TXT for details.
      7 //
      8 //
      9 //  Defines macros used within the libc++abi project.
     10 //
     11 //===----------------------------------------------------------------------===//
     12 
     13 
     14 #ifndef LIBCXXABI_CONFIG_H
     15 #define LIBCXXABI_CONFIG_H
     16 
     17 #include <unistd.h>
     18 
     19 #if defined(_POSIX_THREADS) && _POSIX_THREADS > 0
     20 #  define LIBCXXABI_SINGLE_THREADED 0
     21 #else
     22 #  define LIBCXXABI_SINGLE_THREADED 1
     23 #endif
     24 
     25 #endif // LIBCXXABI_CONFIG_H
     26