diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2020-10-22 02:09:22 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2021-09-29 12:28:36 +0200 |
commit | 64610b6364ba27e2d29da031e8a25e1246827b54 (patch) | |
tree | ff653c3612d6981fc11d38e3892d9a1723f42824 /test.cpp | |
parent | 53bcebc2f0bae3ba0bbcefb849bdb0ede0ea4385 (diff) | |
download | liberty-64610b6364ba27e2d29da031e8a25e1246827b54.tar.gz liberty-64610b6364ba27e2d29da031e8a25e1246827b54.tar.xz liberty-64610b6364ba27e2d29da031e8a25e1246827b54.zip |
Experimental support for building as C++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.
Diffstat (limited to 'test.cpp')
-rw-r--r-- | test.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
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" +} |