Changeset 82fd245 in mainline


Ignore:
Timestamp:
2018-07-05T21:41:19Z (6 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9f77d98
Parents:
e679283
git-author:
Dzejrou <dzejrou@…> (2018-01-07 00:18:22)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:19)
Message:

c: added extern C linkage if the c library headers are compiled as c++ headers

Location:
uspace/lib/c/include
Files:
11 edited

Legend:

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

    re679283 r82fd245  
    3636#define LIBC_INTTYPES_H_
    3737
     38#ifdef __cplusplus
     39extern "C" {
     40#endif
     41
    3842#include <_bits/inttypes.h>
    3943
     
    4549#endif
    4650
     51#ifdef __cplusplus
     52}
     53#endif
     54
    4755#endif
    4856
  • uspace/lib/c/include/limits.h

    re679283 r82fd245  
    3636#define LIBC_LIMITS_H_
    3737
     38#ifdef __cplusplus
     39extern "C" {
     40#endif
     41
    3842#include <_bits/limits.h>
     43
     44#ifdef __cplusplus
     45}
     46#endif
    3947
    4048#endif
  • uspace/lib/c/include/setjmp.h

    re679283 r82fd245  
    3434#define LIBC_SETJMP_H_
    3535
     36#ifdef __cplusplus
     37extern "C" {
     38#endif
     39
    3640#include <libarch/fibril_context.h>
    3741#include <_bits/__noreturn.h>
     
    4549extern __noreturn void longjmp(jmp_buf, int);
    4650
     51#ifdef __cplusplus
     52}
     53#endif
     54
    4755#endif
    4856
  • uspace/lib/c/include/stdarg.h

    re679283 r82fd245  
    3636#define LIBC_STDARG_H_
    3737
     38#ifdef __cplusplus
     39extern "C" {
     40#endif
    3841
    3942typedef __builtin_va_list va_list;
     
    4447#define va_copy(dst, src)   __builtin_va_copy(dst, src)
    4548
     49#ifdef __cplusplus
     50}
     51#endif
     52
    4653#endif
    4754
  • uspace/lib/c/include/stdbool.h

    re679283 r82fd245  
    3636#define LIBC_BOOL_H_
    3737
     38#ifdef __cplusplus
     39extern "C" {
     40#endif
     41
    3842#include <abi/bool.h>
     43
     44#ifdef __cplusplus
     45}
     46#endif
    3947
    4048#ifndef __cplusplus
  • uspace/lib/c/include/stddef.h

    re679283 r82fd245  
    3636#define LIBC_STDDEF_H_
    3737
     38#ifdef __cplusplus
     39extern "C" {
     40#endif
     41
    3842#include <_bits/size_t.h>
    3943#include <_bits/ssize_t.h>
     
    4650        ((size_t) &(((type *) 0)->member))
    4751
     52#ifdef __cplusplus
     53}
     54#endif
     55
    4856#endif
    4957
  • uspace/lib/c/include/stdint.h

    re679283 r82fd245  
    3636#define LIBC_STDINT_H_
    3737
     38#ifdef __cplusplus
     39extern "C" {
     40#endif
     41
    3842#include <_bits/stdint.h>
     43
     44#ifdef __cplusplus
     45}
     46#endif
    3947
    4048#endif
  • uspace/lib/c/include/stdio.h

    re679283 r82fd245  
    3737#define LIBC_STDIO_H_
    3838
     39#ifdef __cplusplus
     40extern "C" {
     41#endif
     42
    3943#include <offset.h>
    4044#include <stdarg.h>
     
    214218
    215219
     220#ifdef __cplusplus
     221}
     222#endif
     223
    216224#endif
    217225
  • uspace/lib/c/include/stdlib.h

    re679283 r82fd245  
    3535#ifndef LIBC_STDLIB_H_
    3636#define LIBC_STDLIB_H_
     37
     38#ifdef __cplusplus
     39extern "C" {
     40#endif
    3741
    3842#include <_bits/size_t.h>
     
    104108extern lldiv_t lldiv(long long, long long);
    105109
     110#ifdef __cplusplus
     111}
     112#endif
     113
    106114#endif
    107115
  • uspace/lib/c/include/str.h

    re679283 r82fd245  
    3636#ifndef LIBC_STR_H_
    3737#define LIBC_STR_H_
     38
     39#ifdef __cplusplus
     40extern "C" {
     41#endif
    3842
    3943#include <errno.h>
     
    139143extern unsigned long strtoul(const char *, char **, int);
    140144
     145#ifdef __cplusplus
     146}
     147#endif
     148
    141149#endif
    142150
  • uspace/lib/c/include/time.h

    re679283 r82fd245  
    3636#define LIBC_TIME_H_
    3737
     38#ifdef __cplusplus
     39extern "C" {
     40#endif
     41
    3842#include <sys/time.h>
    3943
    4044extern time_t time(time_t *);
     45
     46#ifdef __cplusplus
     47}
     48#endif
    4149
    4250#endif
Note: See TracChangeset for help on using the changeset viewer.