lib: merge aligned_malloc.h into lib_common.h

It's simpler to declare the library utility functions in lib_common.h
rather than use a separate header.
This commit is contained in:
Eric Biggers 2020-04-02 23:49:00 -07:00
parent 740820bd66
commit d1b6a825ab
4 changed files with 4 additions and 15 deletions

View File

@ -35,7 +35,7 @@
#include <stdlib.h>
#include "aligned_malloc.h"
#include "lib_common.h"
void *
aligned_malloc(size_t alignment, size_t size)

View File

@ -1,13 +0,0 @@
/*
* aligned_malloc.c - aligned memory allocation
*/
#ifndef LIB_ALIGNED_MALLOC_H
#define LIB_ALIGNED_MALLOC_H
#include "lib_common.h"
void *aligned_malloc(size_t alignment, size_t size);
void aligned_free(void *ptr);
#endif /* LIB_ALIGNED_MALLOC_H */

View File

@ -30,7 +30,6 @@
#include <stdlib.h>
#include <string.h>
#include "aligned_malloc.h"
#include "deflate_compress.h"
#include "deflate_constants.h"
#include "unaligned.h"

View File

@ -32,4 +32,7 @@
#define _cpu_features SYM_FIXUP(_cpu_features)
#define setup_cpu_features SYM_FIXUP(setup_cpu_features)
void *aligned_malloc(size_t alignment, size_t size);
void aligned_free(void *ptr);
#endif /* LIB_LIB_COMMON_H */