mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 16:05:06 +00:00
LibCore: compile puff.c as a separate object
This commit is contained in:
parent
0343be3837
commit
2aeae2aea9
3 changed files with 10 additions and 2 deletions
|
@ -2,7 +2,6 @@
|
|||
#include <AK/ByteBuffer.h>
|
||||
#include <AK/Optional.h>
|
||||
#include <LibCore/puff.h>
|
||||
#include <LibCore/puff.c>
|
||||
#include <limits.h>
|
||||
#include <stddef.h>
|
||||
|
||||
|
|
|
@ -22,7 +22,8 @@ OBJS = \
|
|||
CProcessStatisticsReader.o \
|
||||
CDirIterator.o \
|
||||
CUserInfo.o \
|
||||
CGzip.o
|
||||
CGzip.o \
|
||||
puff.o
|
||||
|
||||
LIBRARY = libcore.a
|
||||
|
||||
|
|
|
@ -21,6 +21,10 @@
|
|||
Mark Adler madler@alumni.caltech.edu
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* See puff.c for purpose and usage.
|
||||
*/
|
||||
|
@ -32,3 +36,7 @@ int puff(unsigned char* dest, /* pointer to destination pointer */
|
|||
unsigned long* destlen, /* amount of output space */
|
||||
const unsigned char* source, /* pointer to source data pointer */
|
||||
unsigned long* sourcelen); /* amount of input available */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue