1
0
forked from aniani/vim

patch 8.2.5061: C89 requires signal handlers to return void

Problem:    C89 requires signal handlers to return void.
Solution:   Drop RETSIGTYPE and hard-code a void return value.
This commit is contained in:
Bram Moolenaar
2022-06-05 22:05:19 +01:00
parent de1d734379
commit 99c48fe997
10 changed files with 49 additions and 129 deletions

View File

@@ -65,18 +65,9 @@
// Define if you have the nanosleep() function.
// #undef HAVE_NANOSLEEP
// Define if you can safely include both <sys/time.h> and <time.h>.
#define TIME_WITH_SYS_TIME
// Define if you can safely include both <sys/time.h> and <sys/select.h>.
// #undef SYS_SELECT_WITH_SYS_TIME
// Define as the return type of signal handlers (int or void).
#define RETSIGTYPE void
// Define as the command at the end of signal handlers ("" or "return 0;").
#define SIGRETURN return
// Define if struct sigcontext is present
#define HAVE_SIGCONTEXT