[cfe-commits] [libcxx] r109894 - /libcxx/trunk/include/stdbool.h

Howard Hinnant hhinnant at apple.com
Fri Jul 30 14:28:27 PDT 2010


Author: hhinnant
Date: Fri Jul 30 16:28:27 2010
New Revision: 109894

URL: http://llvm.org/viewvc/llvm-project?rev=109894&view=rev
Log:
Let C lib supply stdbool.h

Removed:
    libcxx/trunk/include/stdbool.h

Removed: libcxx/trunk/include/stdbool.h
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/stdbool.h?rev=109893&view=auto
==============================================================================
--- libcxx/trunk/include/stdbool.h (original)
+++ libcxx/trunk/include/stdbool.h (removed)
@@ -1,44 +0,0 @@
-// -*- 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





More information about the cfe-commits mailing list