Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Define deprecated attribute for gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
franksinankaya committed Jan 30, 2019
1 parent 0aa6f2a commit 7463ec4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pal/inc/rt/safecrt.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@ typedef _W64 unsigned int uintptr_t;
#define _UINTPTR_T_DEFINED
#endif

#ifdef __GNUC__
#define SAFECRT_DEPRECATED __attribute__((deprecated))
#else
#define SAFECRT_DEPRECATED __declspec(deprecated)
#endif

/* errno_t */
#if !defined(_ERRCODE_DEFINED)
Expand Down

0 comments on commit 7463ec4

Please sign in to comment.