diff --git a/SDL2pp/Config.hh.in b/SDL2pp/Config.hh.in index e12670b..a9ce0bc 100644 --- a/SDL2pp/Config.hh.in +++ b/SDL2pp/Config.hh.in @@ -33,4 +33,10 @@ #cmakedefine SDL2PP_WITH_EXPERIMENTAL_OPTIONAL #cmakedefine SDL2PP_WITH_DEPRECATED +#if defined(SDL2PP_WITH_DEPRECATED) +# define SDL2PP_DEPRECATED [[deprecated]] +#else +# define SDL2PP_DEPRECATED +#endif + #endif