commit 137df8e

uint  ·  2026-05-16 12:23:43 +0000 UTC
parent d9ce4bb
rename wait->wait_events

collisions on macOS
1 files changed,  +4, -3
+4, -3
 1@@ -1,3 +1,4 @@
 2+#include <sys/wait.h>
 3 #define RGFW_IMPLEMENTATION
 4 #include <errno.h>
 5 #include <fcntl.h>
 6@@ -35,7 +36,7 @@ static void resize_pty(void);
 7 static int resize_surface(int w, int h);
 8 static void resize_terminal(int w, int h);
 9 static void run(void);
10-static void wait(void);
11+static void wait_events(void);
12 
13 static Fontface font;
14 static Caret car;
15@@ -344,7 +345,7 @@ static void run(void)
16 		}
17 
18 		if (!dirty) {
19-			wait();
20+			wait_events();
21 			continue;
22 		}
23 
24@@ -394,7 +395,7 @@ static void run(void)
25 /**
26  * @brief wait for activity while allowing window events
27  */
28-static void wait(void)
29+static void wait_events(void)
30 {
31 	struct pollfd pfd = {
32 		.fd = term.ptyfd,