Skip to content

Commit

Permalink
GPUJPEG_DEPRECATE: use [[]] attribs if using C23
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPulec committed Oct 8, 2024
1 parent 27f8335 commit 522c93e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libgpujpeg/gpujpeg_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ struct CUstream_st;
typedef struct CUstream_st *cudaStream_t;
#endif

#if __cplusplus >= 201402L
#if __cplusplus >= 201402L || __STDC_VERSION__ >= 202311L
#define GPUJPEG_DEPRECATED [[deprecated]]
#elif defined _MSC_VER
#define GPUJPEG_DEPRECATED __declspec(deprecated)
Expand Down

0 comments on commit 522c93e

Please sign in to comment.