#include "someclass.h" #ifndef NODEPRECATEDLIB_NO_DEPRECATED void SomeClass::someMethod() const { } #endif