Skip to content

Instantly share code, notes, and snippets.

@tek-nishi
Created April 18, 2015 02:57
Show Gist options
  • Save tek-nishi/b4c029c2024ec71154d1 to your computer and use it in GitHub Desktop.
Save tek-nishi/b4c029c2024ec71154d1 to your computer and use it in GitHub Desktop.
emacs 24.x をMSYS2のclangでビルドするためのパッチ(thank's for rzl24ozi)
--- src/lisp.h.orig 2014-11-19 15:00:20.843528000 +0900
+++ src/lisp.h 2014-11-19 15:07:48.693175100 +0900
@@ -2810,7 +2810,11 @@
/* A platform that uses neither _longjmp nor siglongjmp; assume
longjmp does not affect the sigmask. */
typedef jmp_buf sys_jmp_buf;
+#if defined __MINGW64__ && defined __clang__
+# define sys_setjmp(j) _setjmp (j, NULL)
+#else
# define sys_setjmp(j) setjmp (j)
+#endif
# define sys_longjmp(j, v) longjmp (j, v)
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment