Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 2991b02e authored by rswindell's avatar rswindell

FREE_AR and nular are not required for SCFG now.

parent d37f64e0
......@@ -52,17 +52,17 @@ extern "C" {
#endif
extern const char* scfgnulstr;
extern const uchar* nular;
#define FREE_AND_NULL(x) if(x!=NULL) { FREE(x); x=NULL; }
/* allocated with arstr() */
#define FREE_AR(x) if(x!=NULL && x!=nular) { FREE(x); x=NULL; }
#if defined(SCFG) /* Don't compile AR strings for SCFG */
#define ARSTR(str,cfg) NULL
#define FREE_AR(x)
#else
extern const uchar* nular;
#define ARSTR(str,cfg) arstr(NULL,str,cfg)
/* allocated with arstr() */
#define FREE_AR(x) if(x!=NULL && x!=nular) { FREE(x); x=NULL; }
#endif
char* get_alloc(long *offset, char *outstr, int maxlen, FILE *instream);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment