Does the Sun compiler have a notation to mark functions as deprecated, like GCC's __attribute__ ((deprecated))
or MSVC's __declspec(deprecated)
?
It seems that one solution that would work on any compiler that supports #warning
would be:
#warning "This header is deprecated. Please use {new header name}"