hide __attribute__ from compilers that may not support it

Sat, 22 Jan 2022 10:29:48 +0100

author
Mike Becker <universe@uap-core.de>
date
Sat, 22 Jan 2022 10:29:48 +0100
changeset 493
e3469b497eff
parent 492
188942a7308b
child 494
6ce8cfa10a96

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 */

mercurial