mirror of
https://github.com/cuberite/libdeflate.git
synced 2025-09-12 05:48:25 -04:00
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:
parent
740820bd66
commit
d1b6a825ab
@ -35,7 +35,7 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "aligned_malloc.h"
|
||||
#include "lib_common.h"
|
||||
|
||||
void *
|
||||
aligned_malloc(size_t alignment, size_t size)
|
||||
|
@ -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 */
|
@ -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"
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user