From 58034d3b2988585b143ac4704cec73b80552ec46 Mon Sep 17 00:00:00 2001 From: Gerald Schnabel Date: Tue, 25 May 2021 20:33:26 +0200 Subject: [PATCH] Refuse to build if newlib has no long long type support --- main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.c b/main.c index b3d4232..d7a45dc 100644 --- a/main.c +++ b/main.c @@ -60,6 +60,10 @@ along with this program. If not, see . #include "mist_cfg.h" #include "cdc_enumerate.h" +#ifndef _WANT_IO_LONG_LONG +#error "newlib lacks support of long long type in IO functions. Please use a toolchain that was compiled with option --enable-newlib-io-long-long." +#endif + const char version[] = {"$VER:ATH" VDATE}; extern hdfTYPE hdf[2];