Skip to content

Commit

Permalink
for #1, use macro to switch different solution
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Sep 5, 2016
1 parent 7a6d33a commit 82ab228
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions md.h
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,11 @@
#define MD_STACK_GROWS_DOWN
#define MD_USE_BUILTIN_SETJMP

/* force to use glibc solution, hack the guard jmpbuf from michaeltalyansky */
#ifdef USE_LIBC_SETJMP
#undef MD_USE_BUILTIN_SETJMP
#endif

#if defined(__GLIBC__) && __GLIBC__ >= 2
/* Merge from https://github.com/michaeltalyansky/state-threads/commit/56554a5c425aee8e7a73782eae23d74d83c4120a */
#define MD_GET_SP(_t) (_t)->context[0].__jmpbuf[8]
Expand Down

0 comments on commit 82ab228

Please sign in to comment.