Skip to content

Commit

Permalink
Enabling c++17 deprecated features in clang
Browse files Browse the repository at this point in the history
  • Loading branch information
piponazo committed Jan 8, 2022
1 parent 7f1b7c7 commit 6b73b7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ option( EXIV2_ENABLE_WEBREADY "Build webready support into library"
option( EXIV2_ENABLE_CURL "USE Libcurl for HttpIo (WEBREADY)" OFF )
option( EXIV2_ENABLE_BMFF "Build with BMFF support" ON )

option( EXIV2_BUILD_SAMPLES "Build sample applications" OFF )
option( EXIV2_BUILD_SAMPLES "Build sample applications" ON )
option( EXIV2_BUILD_EXIV2_COMMAND "Build exiv2 command-line executable" ON )
option( EXIV2_BUILD_UNIT_TESTS "Build unit tests" OFF )
option( EXIV2_BUILD_FUZZ_TESTS "Build fuzz tests (libFuzzer)" OFF )
Expand Down
5 changes: 4 additions & 1 deletion samples/Jzon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@ THE SOFTWARE.
#define JzonAPI __declspec(dllexport)
#endif

#ifdef WIN32
#ifdef _MSC_VER
#define _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS
#endif
#ifdef __clang__
#define _LIBCPP_ENABLE_CXX17_REMOVED_FEATURES
#endif

#include "Jzon.h"

Expand Down

0 comments on commit 6b73b7e

Please sign in to comment.