Skip to content

Commit

Permalink
[SofaFramework] Fix _Pragma in config.h.in so it is compatible with VS.
Browse files Browse the repository at this point in the history
  • Loading branch information
damienmarchal committed Dec 3, 2020
1 parent bf534bc commit 5abcaa7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SofaKernel/SofaFramework/src/sofa/config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ typedef unsigned __int64 uint64_t;

///////////////////// These macros can be used to convert deprecation attributes as error.
#if defined(_MSC_VER)
#define SOFA_BEGIN_DEPRECATION_AS_ERROR _Pragma("warning( push )") \
_Pragma("warning(error: 4996)")
#define SOFA_END_DEPRECATION_AS_ERROR _Pragma("warning( pop )")
#define SOFA_BEGIN_DEPRECATION_AS_ERROR __pragma("warning( push )") \
__pragma("warning(error: 4996)")
#define SOFA_END_DEPRECATION_AS_ERROR __pragma("warning( pop )")
#elif defined(__GNUC__)
#define SOFA_BEGIN_DEPRECATION_AS_ERROR _Pragma("GCC diagnostic push") \
_Pragma("GCC diagnostic error \"-Wdeprecated-declarations\"")
Expand Down

0 comments on commit 5abcaa7

Please sign in to comment.