Use <stddef.h> to get wchar_t, rather than <wchar.h> (or nothing, in putty.h).
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sun, 10 Nov 2002 00:03:55 +0000 (00:03 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sun, 10 Nov 2002 00:03:55 +0000 (00:03 +0000)
Both are required to contain wchar_t in C99, but only <stddef.h> does in the
version of MPW I've got here.

git-svn-id: svn://svn.tartarus.org/sgt/putty@2206 cda61777-01e9-0310-a592-d414129be87e

putty.h
wcwidth.c

diff --git a/putty.h b/putty.h
index eebd3da..ad7e390 100644 (file)
--- a/putty.h
+++ b/putty.h
@@ -2,6 +2,7 @@
 #define PUTTY_PUTTY_H
 
 #include <stdio.h>                    /* for FILENAME_MAX */
+#include <stddef.h>                   /* for wchar_t */
 
 /*
  * Global variables. Most modules declare these `extern', but
index f76fd86..2d7a093 100644 (file)
--- a/wcwidth.c
+++ b/wcwidth.c
@@ -6,7 +6,7 @@
  * Markus Kuhn -- 2001-01-12 -- public domain
  */
 
-#include <wchar.h>
+#include <stddef.h>
 
 struct interval {
   unsigned short first;