You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pEpEngine/src/platform_disable_attributes.h

28 lines
828 B
C

#ifndef PLATFORM_DISABLE_ATTRIBUTES_H
#define PLATFORM_DISABLE_ATTRIBUTES_H
/**
* @internal
* @file platform_disable_attributes.h
*
* @brief Disable GNU-style attributes for functions, variables, types and label
* (https://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html ), turning them
* into noops.
*
* This lets the code compile with compilers not supporting
* attributes, while keeping them enabled where they matter.
*
* This header is included by platform-specific code where needed: it is not
* for the user to directly see.
* */
/**
* @internal
* @brief Notice that this definition is extremely conservative: supporting exactly
one argument would suffice. */
#define __attribute__(...) /* nothing */
#define attribute __attribute__
#endif // #ifndef PLATFORM_DISABLE_ATTRIBUTES_H