mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
When compiling with qcc on QNC the define __GNUC__will be set although it doesn't support full GNU syntax
- disable __attribute__ when using qcc
This commit is contained in:
parent
c3a1980e16
commit
cb0a874c11
1 changed files with 3 additions and 0 deletions
|
@ -431,6 +431,9 @@ typedef unsigned short ushort;
|
|||
#ifndef __attribute__
|
||||
# if !defined(__GNUC__)
|
||||
# define __attribute__(A)
|
||||
# elif defined (__QNXNTO__)
|
||||
/* qcc defines GNUC */
|
||||
# define __attribute__(A)
|
||||
# elif GCC_VERSION < 2008
|
||||
# define __attribute__(A)
|
||||
# elif defined(__cplusplus) && GCC_VERSION < 3004
|
||||
|
|
Loading…
Reference in a new issue