include <stdint.h> for uintptr_t

This commit is contained in:
Marko Myllynen
2011-09-21 15:03:55 +03:00
committed by Simo Sorce
parent a1430dcb2c
commit 45aa801952
2 changed files with 2 additions and 0 deletions

View File

@@ -40,6 +40,7 @@
#define EOK 0
#define EFAIL -1
#include <stdint.h>
#ifndef discard_const
#define discard_const(ptr) ((void *)((uintptr_t)(ptr)))
#endif

View File

@@ -23,6 +23,7 @@
#include <libintl.h>
#define _(STRING) gettext(STRING)
#include <stdint.h>
#ifndef discard_const
#define discard_const(ptr) ((void *)((uintptr_t)(ptr)))
#endif