summaryrefslogtreecommitdiff
path: root/Ports/ed/patches/0002-Use-stdbool-instead-of-rolling-a-manual-Bool.patch
blob: 1c6265c3727f591df0f3055cf95e0c6952801eed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Brian Callahan <ibara@users.noreply.github.com>
Date: Sat, 1 Feb 2020 14:54:04 -0500
Subject: [PATCH] Use stdbool instead of rolling a manual Bool

---
 ed.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/ed.h b/ed.h
index db0b4a6..ef0c134 100644
--- a/ed.h
+++ b/ed.h
@@ -18,8 +18,7 @@
 */
 
 #ifndef __cplusplus
-enum Bool { false = 0, true = 1 };
-typedef enum Bool bool;
+#include <stdbool.h>
 #endif
 
 enum Pflags			/* print suffixes */