Changeset e4f8c77 in mainline for uspace/lib/posix/stdbool.h
- Timestamp:
- 2011-07-13T22:39:18Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e6910c8
- Parents:
- 5974661 (diff), 8ecef91 (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/posix/stdbool.h
r5974661 re4f8c77 1 1 /* 2 * Copyright (c) 20 09 Jiri Svoboda2 * Copyright (c) 2011 Jiri Zarevucky 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup lib c29 /** @addtogroup libposix 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef LIBC_DEVMAP_OBSOLETE_H_36 #define LIBC_DEVMAP_OBSOLETE_H_35 #ifndef POSIX_STDBOOL_H_ 36 #define POSIX_STDBOOL_H_ 37 37 38 #include <ipc/devmap.h> 39 #include <async.h> 40 #include <bool.h> 38 // TODO: propose for inclusion in libc and drop bool.h, 39 // it's a very silly incompatibility with standard C 41 40 42 extern int devmap_obsolete_get_phone(devmap_interface_t, unsigned int); 43 extern void devmap_obsolete_hangup_phone(devmap_interface_t iface); 41 #ifdef LIBC_BOOL_H_ 42 #error "You can't include bool.h and stdbool.h at the same time." 43 #endif 44 #define LIBC_BOOL_H_ 44 45 45 extern int devmap_obsolete_device_connect(devmap_handle_t, unsigned int); 46 #define bool _Bool 47 #define true 1 48 #define false 0 49 #define __bool_true_false_are_defined 1 46 50 47 #endif 51 #endif /* POSIX_STDBOOL_H_ */ 48 52 49 /** @}50 */
Note:
See TracChangeset
for help on using the changeset viewer.