]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - misc.h
Simplifiy handling of stdin data in SSH-2.
[PuTTY.git] / misc.h
diff --git a/misc.h b/misc.h
index d5999cbedee2f1d723e0fe8755cc6d638791708e..ce927ec5cd1d0c1a5f001485731c6c52dbc84449 100644 (file)
--- a/misc.h
+++ b/misc.h
@@ -59,10 +59,14 @@ void base64_encode_atom(const unsigned char *data, int n, char *out);
 int base64_decode_atom(const char *atom, unsigned char *out);
 
 struct bufchain_granule;
-typedef struct bufchain_tag {
+struct bufchain_tag {
     struct bufchain_granule *head, *tail;
     int buffersize;                   /* current amount of buffered data */
-} bufchain;
+};
+#ifndef BUFCHAIN_TYPEDEF
+typedef struct bufchain_tag bufchain;  /* rest of declaration in misc.c */
+#define BUFCHAIN_TYPEDEF
+#endif
 
 void bufchain_init(bufchain *ch);
 void bufchain_clear(bufchain *ch);