Sat, 22 Jan 2022 10:29:48 +0100
hide __attribute__ from compilers that may not support it
src/cx/common.h | file | annotate | diff | comparison | revisions |
--- a/src/cx/common.h Tue Dec 28 18:05:14 2021 +0100 +++ b/src/cx/common.h Sat Jan 22 10:29:48 2022 +0100 @@ -108,7 +108,13 @@ #endif #endif /* __WORDSIZE */ #else /* !_WIN32 */ + #include <sys/types.h> + #endif /* _WIN32 */ +#ifndef __GNUC__ +#define __attribute__(x) +#endif + #endif /* UCX_COMMON_H */