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 5be52164 authored by deuce's avatar deuce

Remove #if dance.

parent 1776d17a
......@@ -98,29 +98,19 @@ extern int thread_suid_broken; /* NPTL is no longer broken */
#include <sys/stat.h>
#ifdef JAVASCRIPT
#ifdef __unix__
#define XP_UNIX
#else
#define XP_PC
#define XP_WIN
#endif
#ifdef __unix__
#define XP_UNIX
#else
#define XP_PC
#define XP_WIN
#endif
#ifndef __cplusplus
#include <stdbool.h>
#include <inttypes.h>
#endif
#include <jsversion.h>
#if JS_VERSION < 185
#define JS_THREADSAFE
#endif
#include <jsapi.h>
#if (JS_VERSION < 185) || (defined __cplusplus)
#include <jsprf.h> /* JS-safe sprintf functions */
#include <math.h> /* isnan() */
#endif
#if JS_VERSION >= 185
#define JS_DestroyScript(cx,script)
#endif
#include <jsversion.h>
#include <jsapi.h>
#define JS_DestroyScript(cx,script)
#define JSSTRING_TO_STRING(cx, str, ret, lenptr) \
{ \
......@@ -149,8 +139,6 @@ extern int thread_suid_broken; /* NPTL is no longer broken */
JSSTRING_TO_STRING((cx), JSVTSstr, (ret), lenptr); \
}
#endif
#ifdef USE_CRYPTLIB
#include <cryptlib.h>
#endif
......
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