From 736e7d587749614f8e32d74f720c0fb3c59c52b6 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Thu, 19 May 2016 17:16:04 +0300 Subject: [PATCH] Drop custom DEPRECATED macro We now have this macro generated in Export.hh --- CMakeLists.txt | 5 ----- SDL2pp/Config.hh.in | 7 ------- 2 files changed, 12 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f7efed6..70f9bb8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -105,11 +105,6 @@ CHECK_COMPILE( "#include \nint main() { std::experimental::optional o; return !o; }" "experimental/optional header" ) -CHECK_COMPILE( - SDL2PP_WITH_DEPRECATED - "[[deprecated]]\nstatic void f() {} int main() { return 0; }" - "[[deprecated]] attribute" -) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SDL2PP_WARNINGS}") diff --git a/SDL2pp/Config.hh.in b/SDL2pp/Config.hh.in index f45abb9..f7d1803 100644 --- a/SDL2pp/Config.hh.in +++ b/SDL2pp/Config.hh.in @@ -32,12 +32,5 @@ #cmakedefine SDL2PP_WITH_TTF #cmakedefine SDL2PP_WITH_MIXER #cmakedefine SDL2PP_WITH_EXPERIMENTAL_OPTIONAL -#cmakedefine SDL2PP_WITH_DEPRECATED - -#if defined(SDL2PP_WITH_DEPRECATED) -# define SDL2PP_DEPRECATED [[deprecated]] -#else -# define SDL2PP_DEPRECATED -#endif #endif