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
     1.1 --- a/src/cx/common.h	Tue Dec 28 18:05:14 2021 +0100
     1.2 +++ b/src/cx/common.h	Sat Jan 22 10:29:48 2022 +0100
     1.3 @@ -108,7 +108,13 @@
     1.4  #endif
     1.5  #endif /* __WORDSIZE */
     1.6  #else /* !_WIN32 */
     1.7 +
     1.8  #include <sys/types.h>
     1.9 +
    1.10  #endif /* _WIN32 */
    1.11  
    1.12 +#ifndef __GNUC__
    1.13 +#define __attribute__(x)
    1.14 +#endif
    1.15 +
    1.16  #endif /* UCX_COMMON_H */

mercurial