diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2019-09-20 19:55:29 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2019-09-20 19:55:29 +0000 |
commit | 03f37879ef167dba6f5944716c06da81902e436e (patch) | |
tree | 46a70f3d85f8de8a8a1b648a53754531b86198a6 /src/include | |
parent | 90c1f3c1580d8e699c2788262a614a930a33e13e (diff) | |
download | skalibs-03f37879ef167dba6f5944716c06da81902e436e.tar.xz |
We're down to ONE rogue sysdep, boys. ONE.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/skalibs/alloc.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/include/skalibs/alloc.h b/src/include/skalibs/alloc.h index 85f02f2..a1afdce 100644 --- a/src/include/skalibs/alloc.h +++ b/src/include/skalibs/alloc.h @@ -3,15 +3,13 @@ #ifndef ALLOC_H #define ALLOC_H -#include <sys/types.h> +#include <stdlib.h> #include <skalibs/gccattributes.h> -typedef char aligned_char gccattr_aligned ; -typedef aligned_char *aligned_char_ref, **aligned_char_ref_ref ; +extern void *alloc (size_t) ; +#define alloc_free(p) free(p) -extern aligned_char *alloc (size_t) ; -extern void alloc_free (void *) ; #define alloc_re(p, old, new) alloc_realloc(p, new) -extern int alloc_realloc (aligned_char **, size_t) ; +extern int alloc_realloc (void **, size_t) ; #endif |