provide unconst for the havenots

This commit is contained in:
christos 2011-03-16 20:15:59 +00:00
parent 72f5d65e7e
commit 976d43ec5c
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: libc.h,v 1.8 2009/01/15 15:58:42 christos Exp $ */ /* $NetBSD: libc.h,v 1.9 2011/03/16 20:15:59 christos Exp $ */
/* /*
* Copyright (c) 1991 Carnegie Mellon University * Copyright (c) 1991 Carnegie Mellon University
@ -152,4 +152,8 @@ extern long atot(const char*);
#if defined(c_plusplus) #if defined(c_plusplus)
typedef int (*PFI2)(...); typedef int (*PFI2)(...);
#endif /* c_plusplus */ #endif /* c_plusplus */
#ifndef __UNCONST
#define __UNCONST(a) (void *)(intptr_t)(a)
#endif
#endif /* not _LIBC_H_ */ #endif /* not _LIBC_H_ */