diff options
| author | Philipp Stephani | 2025-03-04 20:50:50 +0100 |
|---|---|---|
| committer | Philipp Stephani | 2025-03-04 20:52:16 +0100 |
| commit | e978737f57ef8447bba5796dd945ac185fcadffa (patch) | |
| tree | a581f4b79e96edc3e8ca24eb38e61b5c4538c29f /src | |
| parent | 4be2574851b96f6adff6b621a159c1afa710b1ee (diff) | |
| download | emacs-e978737f57ef8447bba5796dd945ac185fcadffa.tar.gz emacs-e978737f57ef8447bba5796dd945ac185fcadffa.zip | |
Make Emacs buildable with -std=c11.
With -std=c11, GCC doesn't recognize 'asm' as a keyword, see
https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html and
https://gcc.gnu.org/onlinedocs/gcc/Alternate-Keywords.html. Use __asm__
instead.
* src/lisp.h (flush_stack_call_func): Use __asm__ instead of asm.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lisp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lisp.h b/src/lisp.h index 46844be1eca..bd5029f7a6f 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -4465,7 +4465,7 @@ flush_stack_call_func (void (*func) (void *arg), void *arg) | |||
| 4465 | '__builtin_unwind_init' ineffective (bug#65727). | 4465 | '__builtin_unwind_init' ineffective (bug#65727). |
| 4466 | See <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115132>. */ | 4466 | See <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115132>. */ |
| 4467 | #if defined __GNUC__ && !defined __clang__ && !defined __OBJC__ | 4467 | #if defined __GNUC__ && !defined __clang__ && !defined __OBJC__ |
| 4468 | asm (""); | 4468 | __asm__ (""); |
| 4469 | #endif | 4469 | #endif |
| 4470 | } | 4470 | } |
| 4471 | 4471 | ||