]> git.tuebingen.mpg.de Git - dss.git/commit
Only define gcc function attributes on gcc.
authorDaniel Richard G <skunk@iSKUNK.ORG>
Mon, 6 Aug 2012 18:39:53 +0000 (20:39 +0200)
committerAndre Noll <maan@systemlinux.org>
Mon, 6 Aug 2012 21:44:21 +0000 (23:44 +0200)
commite1f886f9d8e4386ecbca292ecb418440434a13e0
tree5d35d90ba60163e81579311ad28b5ab9ecd4742c
parent2b4f4c85be13bb26a230df6669a7138d123c1a7d
Only define gcc function attributes on gcc.

These gcc extensions help the compiler optimize function calls,
but are unavailable if dss is not compiled with gcc.

This patch defines the corresponding macros to empty if __GNUC__
is not defined, or if the gcc version is too old to support the
particular function attribute.
gcc-compat.h