Changeset e4f8c77 in mainline for uspace/lib/posix/stdbool.h


Ignore:
Timestamp:
2011-07-13T22:39:18Z (13 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
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.
Message:

Merge libposix.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/stdbool.h

    r5974661 re4f8c77  
    11/*
    2  * Copyright (c) 2009 Jiri Svoboda
     2 * Copyright (c) 2011 Jiri Zarevucky
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @addtogroup libc
     29/** @addtogroup libposix
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef LIBC_DEVMAP_OBSOLETE_H_
    36 #define LIBC_DEVMAP_OBSOLETE_H_
     35#ifndef POSIX_STDBOOL_H_
     36#define POSIX_STDBOOL_H_
    3737
    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
    4140
    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_
    4445
    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
    4650
    47 #endif
     51#endif /* POSIX_STDBOOL_H_ */
    4852
    49 /** @}
    50  */
Note: See TracChangeset for help on using the changeset viewer.