From 2c001e655002ee713457342197a7005217cd16b4 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 26 Jun 2019 14:40:30 +0200 Subject: Add a 16-bit XDR variant --- src/app/prototest/Makefile.inc | 5 +++++ src/app/prototest/main.cc | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'src/app') diff --git a/src/app/prototest/Makefile.inc b/src/app/prototest/Makefile.inc index a33fd48..ee509a7 100644 --- a/src/app/prototest/Makefile.inc +++ b/src/app/prototest/Makefile.inc @@ -72,6 +72,11 @@ ifeq (${prototest_xdr}, 1) CXX_TARGETS += src/os/object/xdrstream.cc src/os/object/xdrinput.cc endif +ifeq (${prototest_xdr16}, 1) + COMMON_FLAGS += -DPROTOTEST_XDR16 + CXX_TARGETS += src/os/object/xdr16stream.cc src/os/object/xdr16input.cc +endif + # Don't try to make .capnp from .capnp.c %.capnp: ; diff --git a/src/app/prototest/main.cc b/src/app/prototest/main.cc index d470d59..ee5c958 100644 --- a/src/app/prototest/main.cc +++ b/src/app/prototest/main.cc @@ -39,6 +39,11 @@ #include "object/xdrstream.h" #include "object/xdrinput.h" #endif +#ifdef PROTOTEST_XDR16 +#include "object/stdbuf.h" +#include "object/xdr16stream.h" +#include "object/xdr16input.h" +#endif #include -- cgit v1.2.3