Use attribute(deprecated) instead of attribute(error). (#7362)
commit076557c37f423efe1815f195f025c891a563666a
authorjaykrell <jay.krell@cornell.edu>
Thu, 1 Mar 2018 16:18:15 +0000 (1 08:18 -0800)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Thu, 1 Mar 2018 16:18:15 +0000 (1 17:18 +0100)
tree00d36917e48e60b02403e709561d2e87f69cab6c
parent68376f1f9b2a60b374cd4dbcb47ca17948cff693
Use attribute(deprecated) instead of attribute(error). (#7362)

- This is independent of optimization, which is seemingly what we want.
- This does not have bug under optimization that `error` has, that
 currently breaks FullAOT builds.

This is an alternative to https://github.com/mono/mono/pull/7353.

Use ifdef GNUC || clang to indicate we know clang is compatible,
and not just depend on clang defining GNUC and being very compatible.

See also https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84628.
mono/utils/mono-publib.h