mirror of
https://github.com/cuberite/libdeflate.git
synced 2025-09-24 03:41:47 -04:00
lib: rename aligned_malloc.c to utils.c
Prepare to use this file for more utility functions.
This commit is contained in:
parent
d1b6a825ab
commit
64b4e8191e
2
Makefile
2
Makefile
@ -132,7 +132,7 @@ LIB_CFLAGS += $(CFLAGS) -fvisibility=hidden -D_ANSI_SOURCE
|
||||
|
||||
LIB_HEADERS := $(wildcard lib/*.h) $(wildcard lib/*/*.h)
|
||||
|
||||
LIB_SRC := lib/aligned_malloc.c lib/deflate_decompress.c \
|
||||
LIB_SRC := lib/deflate_decompress.c lib/utils.c \
|
||||
$(wildcard lib/*/cpu_features.c)
|
||||
|
||||
DECOMPRESSION_ONLY :=
|
||||
|
@ -18,13 +18,13 @@ SHARED_LIB = libdeflate.dll
|
||||
IMPORT_LIB = libdeflate.lib
|
||||
|
||||
STATIC_LIB_OBJ = \
|
||||
lib/aligned_malloc.obj \
|
||||
lib/adler32.obj \
|
||||
lib/crc32.obj \
|
||||
lib/deflate_compress.obj \
|
||||
lib/deflate_decompress.obj \
|
||||
lib/gzip_compress.obj \
|
||||
lib/gzip_decompress.obj \
|
||||
lib/utils.obj \
|
||||
lib/x86/cpu_features.obj \
|
||||
lib/zlib_compress.obj \
|
||||
lib/zlib_decompress.obj
|
||||
|
@ -1,7 +1,5 @@
|
||||
/*
|
||||
* aligned_malloc.c - aligned memory allocation
|
||||
*
|
||||
* Originally public domain; changes after 2016-09-07 are copyrighted.
|
||||
* utils.c - utility functions for libdeflate
|
||||
*
|
||||
* Copyright 2016 Eric Biggers
|
||||
*
|
||||
@ -27,12 +25,6 @@
|
||||
* OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/*
|
||||
* This file provides portable aligned memory allocation functions that only
|
||||
* use malloc() and free(). This avoids portability problems with
|
||||
* posix_memalign(), aligned_alloc(), etc.
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "lib_common.h"
|
Loading…
x
Reference in New Issue
Block a user