diff options
author | unknown <msvensson@neptunus.(none)> | 2006-10-02 13:53:10 +0200 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2006-10-02 13:53:10 +0200 |
commit | 5bd5f55eee390dc0bc06be57e05a90264673b615 (patch) | |
tree | a676f35d7da2a33ad4598ad39a70cc4d9e3bf650 /include | |
parent | 4c59fceab0348d0375811c9968d4d779d5e018b2 (diff) | |
download | mariadb-git-5bd5f55eee390dc0bc06be57e05a90264673b615.tar.gz |
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
include/my_global.h:
Disable __attribute__ when compiling with qcc
Diffstat (limited to 'include')
-rw-r--r-- | include/my_global.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/my_global.h b/include/my_global.h index a150bb42928..d92df6fa743 100644 --- a/include/my_global.h +++ b/include/my_global.h @@ -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 |