diff th_network.h @ 457:85fa3d333556

Actually, revert the boolean changes .. meh.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 02 Jan 2018 23:09:29 +0200
parents 347bfd3e017e
children e4ce60239d16
line wrap: on
line diff
--- a/th_network.h	Tue Jan 02 22:57:47 2018 +0200
+++ b/th_network.h	Tue Jan 02 23:09:29 2018 +0200
@@ -16,7 +16,7 @@
 
 
 #ifdef TH_PLAT_WINDOWS
-#    define __OBJC_bool // A nasty hack
+#    define __OBJC_BOOL // A nasty hack
 #    include <windows.h>
 #    include <winsock.h>
 typedef uint16_t in_port_t;
@@ -157,11 +157,11 @@
 int         th_conn_pull(th_conn_t *);
 int         th_conn_send_buf(th_conn_t *, const void *buf, const size_t len);
 int         th_conn_send_growbuf(th_conn_t *, th_growbuf_t *buf);
-bool        th_conn_check(th_conn_t *);
+BOOL        th_conn_check(th_conn_t *);
 
 
-bool        th_conn_buf_check(th_conn_t *conn, size_t n);
-bool        th_conn_buf_skip(th_conn_t *conn, size_t n);
+BOOL        th_conn_buf_check(th_conn_t *conn, size_t n);
+BOOL        th_conn_buf_skip(th_conn_t *conn, size_t n);
 int         th_conn_buf_strncmp(th_conn_t *conn, const char *str, const size_t n);
 int         th_conn_buf_strcmp(th_conn_t *conn, const char *str);
 char *      th_conn_buf_strstr(th_conn_t *conn, const char *str);