12 lines · c
1#ifdef __APPLE__2// ucontext.h is deprecated on macOS, so tests that include it may stop working3// someday. We define _XOPEN_SOURCE to keep using ucontext.h for now.4#ifdef _STRUCT_UCONTEXT5#error incomplete ucontext_t already defined, change #include order6#endif7#define _XOPEN_SOURCE 7008#pragma clang diagnostic ignored "-Wdeprecated-declarations"9#endif10 11#include <ucontext.h>12