freebsd: Only define __deprecated if it's not already defined

FreeBSD's sys/cdefs.h is about to start defining __deprecated. So, only
define it away if it's not already defined for older branches, etc.

Sponsored-by: Netflix
Signed-off-by: Warner Losh <imp@bsdimp.com>
This commit is contained in:
Warner Losh 2024-07-25 10:58:00 -06:00 committed by Warner Losh
parent c7ada64bb6
commit 18269018e2
1 changed files with 2 additions and 0 deletions

View File

@ -50,7 +50,9 @@
#define __cond_lock(x, c) (c)
#define __bitwise
#define __devinitdata
#ifndef __deprecated
#define __deprecated
#endif
#define __init
#define __initconst
#define __devinit