From f1f6762616bb634cee170c381701132968caa218 Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Thu, 27 Dec 2018 09:24:25 +0100 Subject: [PATCH] conditional definition of FGETS --- demo/demo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/demo.c b/demo/demo.c index 15975dd..2e630ad 100644 --- a/demo/demo.c +++ b/demo/demo.c @@ -77,13 +77,13 @@ static void _panic(int l) fprintf(stderr, "\n%d: fgets failed\n", l); exit(EXIT_FAILURE); } -#endif #define FGETS(str, size, stream) \ { \ char *ret = fgets(str, size, stream); \ if (!ret) { _panic(__LINE__); } \ } +#endif static mp_int a, b, c, d, e, f;