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

Update to C99 and use -Wall -pedantic

parent 5baf677b
......@@ -3,7 +3,7 @@ include ${SRC_ROOT}/build/Common.gmake
# OpenDoors
LDFLAGS += -L$(SRC_ROOT)/odoors/libs-`uname`
CFLAGS += -I$(SRC_ROOT)/odoors
CFLAGS += -I$(SRC_ROOT)/odoors -Wall -pedantic -std=c99
ifdef STATIC
LDFLAGS += -static
......
......@@ -2,7 +2,8 @@
#ifdef _MSC_VER
#define INT64 __int64
#else
#define INT64 long long int
#include <inttypes.h>
#define INT64 int64_t
#endif
#endif
......@@ -13,7 +14,7 @@
#ifdef _MSC_VER
#define INT64FORMAT "I64d"
#else
#define INT64FORMAT "lld"
#define INT64FORMAT PRId64
#endif
#endif
#endif
......@@ -22,7 +23,7 @@
#ifdef _MSC_VER
#define QWORD unsigned _int64
#else
#define QWORD unsigned long long int
#define QWORD uint64_t
#endif
#endif
......@@ -33,7 +34,7 @@
#ifdef _MSC_VER
#define QWORDFORMAT "I64u"
#else
#define QWORDFORMAT "llu"
#define QWORDFORMAT PRIu64
#endif
#endif
#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