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 // Set this in the CXXFLAGS when you need it
     20 #if !defined(LIBCXXABI_HAS_NO_THREADS)
     21 #  define LIBCXXABI_HAS_NO_THREADS 0
     22 #endif
     23 
     24 // Set this in the CXXFLAGS when you need it, because otherwise we'd have to
     25 // #if !defined(__linux__) && !defined(__APPLE__) && ...
     26 // and so-on for *every* platform.
     27 #ifndef LIBCXXABI_BAREMETAL
     28 #  define LIBCXXABI_BAREMETAL 0
     29 #endif
     30 
     31 #endif // LIBCXXABI_CONFIG_H
     32