]> git.lizzy.rs Git - linenoise.git/blobdiff - stringbuf.c
Use CMake
[linenoise.git] / stringbuf.c
index f83c1b8d54fee7c3964ad68a208c7f0f68db1905..2f31c5fba5bc0d1e97daf768824d1342e1205db2 100644 (file)
@@ -1,3 +1,10 @@
+/**
+ * resizable string buffer
+ *
+ * (c) 2017-2020 Steve Bennett <steveb@workware.net.au>
+ *
+ * See utf8.c for licence details.
+ */
 #include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
@@ -8,8 +15,10 @@
 #include "stringbuf.h"
 #endif
 #ifdef USE_UTF8
+#ifndef UTF8_UTIL_H
 #include "utf8.h"
 #endif
+#endif
 
 #define SB_INCREMENT 200