Include <stdint.h> if it exists.
If avaiable, use uintptr_t to define rk_UNCONST. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16101 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -37,6 +37,9 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#ifdef HAVE_STDINT_H
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
#include <string.h>
|
||||
#include <signal.h>
|
||||
|
||||
@@ -138,6 +141,12 @@ typedef int ssize_t;
|
||||
|
||||
ROKEN_CPP_START
|
||||
|
||||
#ifdef HAVE_UINTPTR_T
|
||||
#define rk_UNCONST(x) ((void *)(uintptr_t)(const void *)(x))
|
||||
#else
|
||||
#define rk_UNCONST(x) ((void *)(unsigned long)(const void *)(x))
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_SETSID) && defined(HAVE__SETSID)
|
||||
#define setsid _setsid
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user