mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-03 10:55:57 -04:00
Drop custom DEPRECATED macro
We now have this macro generated in Export.hh
This commit is contained in:
parent
20bdc36577
commit
736e7d5877
@ -105,11 +105,6 @@ CHECK_COMPILE(
|
||||
"#include <experimental/optional>\nint main() { std::experimental::optional<int> 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}")
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user