Ignore:
File:
1 edited

Legend:

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

    rbc56f30 r09ab0a9a  
    3333 */
    3434
    35 #ifndef _LIBC_TIME_H_
    36 #define _LIBC_TIME_H_
     35#ifndef LIBC_TIME_H_
     36#define LIBC_TIME_H_
    3737
    38 #include <_bits/decls.h>
     38#ifdef __cplusplus
     39extern "C" {
     40#endif
    3941
    4042/* ISO/IEC 9899:2011 7.27.1 (2) */
     
    5052#include <_bits/size_t.h>
    5153
    52 __C_DECLS_BEGIN;
    53 
    5454/* ISO/IEC 9899:2011 7.27.1 (3), (4) */
    5555
     
    6464struct tm {
    6565        int tm_sec;
    66         int tm_nsec;  /**< Nonstandard extension, nanoseconds since last second. */
     66#ifdef _HELENOS_SOURCE
     67        int tm_nsec;
     68#endif
    6769        int tm_min;
    6870        int tm_hour;
     
    106108    const struct tm *__restrict__);
    107109
    108 __C_DECLS_END;
    109 
    110110#ifdef _HELENOS_SOURCE
    111111
     
    116116#include <stdbool.h>
    117117#include <_bits/errno.h>
    118 
    119 __HELENOS_DECLS_BEGIN;
    120118
    121119typedef long long sec_t;
     
    159157extern void udelay(sysarg_t);
    160158
    161 __HELENOS_DECLS_END;
     159#endif /* _HELENOS_SOURCE */
    162160
    163 #endif /* _HELENOS_SOURCE */
     161#ifdef __cplusplus
     162}
     163#endif
    164164
    165165#endif
Note: See TracChangeset for help on using the changeset viewer.