standalone: use GCC_VERSION defined in compiler-gcc.h
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Wed, 3 Sep 2014 17:40:59 +0000 (02:40 +0900)
committerTom Rini <trini@ti.com>
Tue, 16 Sep 2014 16:23:57 +0000 (12:23 -0400)
commit2d5db193ee8675def3b683ed0f3c6df439a15486
treea6c0edfaad3b3ef8531b6a50520071121d21b89e
parentfb8ffd7cfc68b3dc44e182356a207d784cb30b34
standalone: use GCC_VERSION defined in compiler-gcc.h

Now GCC_VERSION is defined in include/linux/compiler-gcc.h
(with a little different definition).
Use it and delete the one in examples/standlone/stub.c.

This should work on Clang too because __GNUC__, __GNUC_MINOR__,
__GNUC_PATCHLEVEL__ are also defined on Clang.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Jeroen Hofstee <jeroen@myspectrum.nl>
examples/standalone/stubs.c