Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/errno.h

    r10de842 rbc56f30  
    3333 */
    3434
    35 #ifndef LIBC_ERRNO_H_
    36 #define LIBC_ERRNO_H_
     35#ifndef _LIBC_ERRNO_H_
     36#define _LIBC_ERRNO_H_
    3737
    3838#include <_bits/errno.h>
    3939#include <abi/errno.h>
     40#include <_bits/decls.h>
    4041
    41 #define errno  (*(__errno()))
     42__HELENOS_DECLS_BEGIN;
    4243
    4344extern errno_t *__errno(void) __attribute__((const));
     45
     46__HELENOS_DECLS_END;
     47
     48#ifdef __cplusplus
     49#define errno  (*(::helenos::__errno()))
     50#else
     51#define errno  (*(__errno()))
     52#endif
    4453
    4554#endif
Note: See TracChangeset for help on using the changeset viewer.