zpmod  b19981f
High-performance Zsh module for script optimization and filesystem helpers
sigcount.h
Go to the documentation of this file.
1 #pragma once
2 /* Lightweight shim to provide SIGCOUNT for builds that include signames.epro
3  * and signals.h. Prefer the vendored zsh header if available; otherwise, use
4  * a conservative fallback consistent with upstream defaults. */
5 #ifndef ZPMOD_SIGCOUNT_SHIM_H
6 #define ZPMOD_SIGCOUNT_SHIM_H
7 
8 #if defined(__has_include)
9 #if __has_include("../../vendor/zsh/Src/sigcount.h")
10 #include "../../vendor/zsh/Src/sigcount.h"
11 #elif __has_include("../vendor/zsh/Src/sigcount.h")
12 #include "../vendor/zsh/Src/sigcount.h"
13 #elif __has_include("vendor/zsh/Src/sigcount.h")
14 #include "vendor/zsh/Src/sigcount.h"
15 #elif __has_include("Src/sigcount.h")
16 #include "Src/sigcount.h"
17 #endif
18 #endif
19 
20 #ifndef SIGCOUNT
21 #define SIGCOUNT 31
22 #endif
23 
24 #endif /* ZPMOD_SIGCOUNT_SHIM_H */