zpmod
b19981f
High-performance Zsh module for script optimization and filesystem helpers
zpmod_vendor_shims.h
Go to the documentation of this file.
1
#pragma once
2
/* SPDX-License-Identifier: MIT */
11
#ifndef ZPMOD_VENDOR_SHIMS_H
12
#define ZPMOD_VENDOR_SHIMS_H
13
14
/* Suppress GCC macro redefinition noise for alloca when both glibc and
15
* vendor zsh define it; only apply if standard headers already provided
16
* the macro. We purposely do NOT redefine functional behavior. */
17
#if defined(__GNUC__) && defined(alloca) && !defined(ZPMOD_SUPPRESS_ALLOCA_WARN)
18
#define ZPMOD_SUPPRESS_ALLOCA_WARN 1
19
/* Rely on existing definition; nothing to do besides having a named flag
20
* that could be used for conditional diagnostic pragmas if desired. */
21
#endif
22
23
#endif
/* ZPMOD_VENDOR_SHIMS_H */
src
include
zpmod_vendor_shims.h
Generated by
1.9.1