mirror of
https://github.com/darlinghq/darling-libcxx.git
synced 2024-11-24 12:29:57 +00:00
f5256e16df
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@103516 91177308-0d34-0410-b5e6-96231b3b80d8
45 lines
851 B
C++
45 lines
851 B
C++
// -*- C++ -*-
|
|
//===--------------------------- stdbool.h --------------------------------===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef _LIBCPP_STDBOOL_H
|
|
#define _LIBCPP_STDBOOL_H
|
|
|
|
/*
|
|
stdbool.h synopsis
|
|
|
|
Macros:
|
|
|
|
__bool_true_false_are_defined
|
|
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
#include <__config>
|
|
#endif
|
|
|
|
#pragma GCC system_header
|
|
|
|
#undef __bool_true_false_are_defined
|
|
#define __bool_true_false_are_defined 1
|
|
|
|
#ifndef __cplusplus
|
|
|
|
#define bool _Bool
|
|
#if __STDC_VERSION__ < 199901L && __GNUC__ < 3
|
|
typedef int _Bool;
|
|
#endif
|
|
|
|
#define false (bool)0
|
|
#define true (bool)1
|
|
|
|
#endif /* !__cplusplus */
|
|
|
|
#endif // _LIBCPP_STDBOOL_H
|