mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-04-21 06:03:54 +00:00
Add minimal libzpaq compilation support.
This commit is contained in:
parent
63229baed6
commit
dd89bdcf3e
2 changed files with 8 additions and 1 deletions
|
|
@ -15,6 +15,7 @@ conforming to the ZPAQ level 2 standard. See http://mattmahoney.net/zpaq/
|
|||
*/
|
||||
|
||||
#include "libzpaq.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
|
|
@ -57,6 +58,10 @@ void Writer::write(const char* buf, int n) {
|
|||
put(U8(buf[i]));
|
||||
}
|
||||
|
||||
void error(const char* msg) {
|
||||
fprintf(stderr, "zpipe error: %s\n", msg);
|
||||
exit(1);
|
||||
}
|
||||
///////////////////////// allocx //////////////////////
|
||||
|
||||
// Allocate newsize > 0 bytes of executable memory and update
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue