Ignore:
File:
1 edited

Legend:

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

    rbc56f30 r4805495  
    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>
    38 #include <_bits/decls.h>
    39 
    40 __C_DECLS_BEGIN;
    4142
    4243typedef __context_t jmp_buf[1];
     
    4546extern __noreturn void __context_restore(__context_t *, int);
    4647
     48#define setjmp __context_save
    4749extern __noreturn void longjmp(jmp_buf, int);
    4850
    49 __C_DECLS_END;
    50 
    51 #define setjmp __context_save
     51#ifdef __cplusplus
     52}
     53#endif
    5254
    5355#endif
Note: See TracChangeset for help on using the changeset viewer.