shithub: femtolisp

Download patch

ref: ec7601076a976f845bc05ad6bd3ed5b8cde58a97
parent: 70c805fb3f41c6d9d506c34f07776542ef0b2ca7
parent: 8964eb4f8dc80fa1461e5c0b2fae2b5f72c18eb0
author: Jeff Bezanson <jeff.bezanson@gmail.com>
date: Thu Jun 6 15:55:40 EDT 2019

Merge pull request #54 from pouar/xopen

#define _XOPEN_SOURCE instead of prototyping wcwidth

--- a/llt/utf8.c
+++ b/llt/utf8.c
@@ -12,6 +12,7 @@
   valid.
   A UTF-8 validation routine is included.
 */
+#define _XOPEN_SOURCE 700
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
--- a/llt/utf8.h
+++ b/llt/utf8.h
@@ -16,7 +16,7 @@
 
 extern int locale_is_utf8;
 
-#if defined(__WIN32__) || defined(__linux__)
+#if defined(__WIN32__)
 extern int wcwidth(uint32_t);
 #endif