]> diplodocus.org Git - nmh/blobdiff - sbr/getline.c
h/prototypes.h: Remove mhlsbr() prototype; no such function.
[nmh] / sbr / getline.c
index 7e3e7978b3a5a6fd333b139881e373c60ece5a02..9fae30feb4d99074b819de5ca8bb048e51a928cb 100644 (file)
@@ -1,5 +1,4 @@
-/*
- * getline.c -- replacement getline() implementation
+/* getline.c -- replacement getline() implementation
  *
  * This code is Copyright (c) 2016, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -10,13 +9,8 @@
 #include <stdio.h>
 #include <limits.h>
 #include <errno.h>
-#ifdef HAVE_STDBOOL_H
-# include <stdbool.h>
-#else  /* ! HAVE_STDBOOL_H */
-# define bool int
-# define true 1
-# define false 0
-#endif /* ! HAVE_STDBOOL_H */
+
+#include "h/mh.h"
 
 /* Largest possible size of buffer that allows SSIZE_MAX to be returned
  * to indicate SSIZE_MAX - 1 characters read before the '\n'.  The