From 64610b6364ba27e2d29da031e8a25e1246827b54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Thu, 22 Oct 2020 02:09:22 +0200 Subject: Experimental support for building as C++ So far with the following caveats: - Triggers -Wc99-designator - Compound literals are non-standard. - The setjmp/longjmp in the configuration parser might be an issue. - Perhaps others. It does not seem to be a good idea to use this library for C++ at all. Much of what it does is directly replaced by the STL. --- test.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test.cpp (limited to 'test.cpp') diff --git a/test.cpp b/test.cpp new file mode 100644 index 0000000..51a2c2c --- /dev/null +++ b/test.cpp @@ -0,0 +1,17 @@ +#define PROGRAM_NAME "test" +#define PROGRAM_VERSION "0" + +#define LIBERTY_WANT_SSL +#define LIBERTY_WANT_ASYNC +#define LIBERTY_WANT_POLLER +#define LIBERTY_WANT_PROTO_IRC +#define LIBERTY_WANT_PROTO_HTTP +#define LIBERTY_WANT_PROTO_SCGI +#define LIBERTY_WANT_PROTO_FASTCGI +#define LIBERTY_WANT_PROTO_WS +#define LIBERTY_WANT_PROTO_MPD + +extern "C" +{ +#include "liberty.c" +} -- cgit v1.2.3