check gcc version before using gnu_printf attribute
authorFriedrich Beckmann <friedrich.beckmann@gmx.de>
Sun, 15 Nov 2020 08:15:13 +0000 (09:15 +0100)
committerFriedrich Beckmann <friedrich.beckmann@gmx.de>
Sun, 15 Nov 2020 08:15:13 +0000 (09:15 +0100)
commit9b9bfe9d73a06218343f4c08aa7e9dd65d5a7da3
tree7eca9f25b63e1db8d25c0bbfd95cdf2ff92d9929
parentf8a2d63bc50ab31aa89420508dad3976da9ee9a2
check gcc version before using gnu_printf attribute

The MacOS clang compiler does not know the gnu_printf attribute.
gnu_printf was introduced with gcc version 4.4 so I check the
gcc version before using gnu_printf. Otherwise I fallback to the
previous __printf__ attribute.
src/libpspp/compiler.h
src/output/pivot-table.h