having a non-installed include file makes build troubles

master
Volker Birk 1 month ago
parent 4b4d5fcac3
commit 821a89da14

@ -1,27 +0,0 @@
#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

@ -16,7 +16,9 @@
// The compiler used by default on this platform does not support GNU-style
// attributes.
#include "platform_disable_attributes.h"
#define __attribute__(...) /* nothing */
#define attribute __attribute__
// We need to make sure winsock2 is included before windows.h, or we will get redefinitions of symbols
// as windows.h includes winsock1.h, so we will have duplicate symbols if windows.h is included first.

Loading…
Cancel
Save