Skip to content

Commit

Permalink
Use C++17 deprecated when supported
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Nov 1, 2024
1 parent d51ec67 commit fb9e653
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Inc/DirectXMath.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
#endif

#ifndef XM_DEPRECATED
#ifdef __GNUC__
#if (__cplusplus >= 201402L)
#define XM_DEPRECATED [[deprecated]]
#elif defined(__GNUC__)
#define XM_DEPRECATED __attribute__ ((deprecated))
#else
#define XM_DEPRECATED __declspec(deprecated("This is deprecated and will be removed in a future version."))
Expand Down Expand Up @@ -164,7 +166,7 @@
#pragma warning(pop)
#endif

#if __cplusplus >= 201703L
#if (__cplusplus >= 201703L)
#define XM_ALIGNED_DATA(x) alignas(x)
#define XM_ALIGNED_STRUCT(x) struct alignas(x)
#elif defined(__GNUC__)
Expand Down

0 comments on commit fb9e653

Please sign in to comment.