git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Usermode/libc - Fix strchr and strrchr behavior
[tpg/acess2.git]
/
Usermode
/
Libraries
/
libc.so_src
/
include_exp
/
setjmp.h
diff --git
a/Usermode/Libraries/libc.so_src/include_exp/setjmp.h
b/Usermode/Libraries/libc.so_src/include_exp/setjmp.h
index
53f3fbf
..
5eb7bb5
100644
(file)
--- a/
Usermode/Libraries/libc.so_src/include_exp/setjmp.h
+++ b/
Usermode/Libraries/libc.so_src/include_exp/setjmp.h
@@
-8,10
+8,14
@@
#ifndef _LIBC_SETJMP_H_
#define _LIBC_SETJMP_H_
#ifndef _LIBC_SETJMP_H_
#define _LIBC_SETJMP_H_
-#if ARCHDIR_is_x86
-typedef uint32_t jmp_buf[8];
-#elif ARCHDIR_is_x86_64
-typedef uint64_t jmp_buf[16];
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#if defined(__i386__)
+typedef void *jmp_buf[8];
+#elif defined(__amd64__)
+typedef void *jmp_buf[16];
#else
# error "Unknown Architecture"
#endif
#else
# error "Unknown Architecture"
#endif
@@
-19,5
+23,9
@@
typedef uint64_t jmp_buf[16];
extern int setjmp(jmp_buf buf);
extern void longjmp(jmp_buf buf, int val);
extern int setjmp(jmp_buf buf);
extern void longjmp(jmp_buf buf, int val);
+#ifdef __cplusplus
+}
+#endif
+
#endif
#endif
UCC
git Repository :: git.ucc.asn.au