Changeset 25eec4e in mainline for uspace/lib/c/include/stdbool.h
- Timestamp:
- 2013-04-19T18:38:18Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6d717a4
- Parents:
- a1e2df13 (diff), 289cb7dd (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/stdbool.h
ra1e2df13 r25eec4e 1 1 /* 2 * Copyright (c) 20 11 Jiri Zarevucky2 * Copyright (c) 2006 Martin Decky 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup lib posix29 /** @addtogroup libc 30 30 * @{ 31 31 */ 32 /** @file Boolean type and values.32 /** @file 33 33 */ 34 34 35 #ifndef POSIX_STDBOOL_H_36 #define POSIX_STDBOOL_H_35 #ifndef LIBC_BOOL_H_ 36 #define LIBC_BOOL_H_ 37 37 38 #ifdef LIBC_BOOL_H_ 38 #include <libarch/types.h> 39 #include <abi/bool.h> 39 40 40 #if (!defined(POSIX_STDIO_H_)) && \ 41 (!defined(POSIX_STDLIB_H_)) && \ 42 (!defined(POSIX_STRING_H_)) 43 #error "You can't include bool.h and stdbool.h at the same time." 41 #define false 0 42 #define true 1 43 44 #define __bool_true_false_are_defined 1 45 44 46 #endif 45 47 46 #endif /* LIBC_BOOL_H */ 47 48 #define LIBC_BOOL_H_ 49 50 #define bool _Bool 51 #define true 1 52 #define false 0 53 #define __bool_true_false_are_defined 1 54 55 #endif /* POSIX_STDBOOL_H_ */ 48 /** @} 49 */
Note:
See TracChangeset
for help on using the changeset viewer.