summaryrefslogtreecommitdiffstats
path: root/lib/libocurses
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1999-11-29 06:50:23 +0000
committermillert <millert@openbsd.org>1999-11-29 06:50:23 +0000
commit3b6dd990b79a2cd2053131b368c29cb27cf97d69 (patch)
treed97b2bab8bf37a5f0995d3447493e871e55bc51a /lib/libocurses
parentKill BOOLEAN, just use the curses/c++ bool type instead. (diff)
downloadwireguard-openbsd-3b6dd990b79a2cd2053131b368c29cb27cf97d69.tar.xz
wireguard-openbsd-3b6dd990b79a2cd2053131b368c29cb27cf97d69.zip
Move definitions of bool, TRUE, and FALSE out from behind a comment
stating that they are only for backward compatibility--they are not.
Diffstat (limited to 'lib/libocurses')
-rw-r--r--lib/libocurses/curses.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/libocurses/curses.h b/lib/libocurses/curses.h
index 999282316db..3b80a82a691 100644
--- a/lib/libocurses/curses.h
+++ b/lib/libocurses/curses.h
@@ -41,13 +41,6 @@
#include <stdio.h>
-/*
- * The following #defines and #includes are present for backward
- * compatibility only. They should not be used in future code.
- *
- * START BACKWARD COMPATIBILITY ONLY.
- */
-#ifndef _CURSES_PRIVATE
#define bool char
#ifndef TRUE
@@ -57,6 +50,13 @@
#define FALSE (0)
#endif
+/*
+ * The following #defines and #includes are present for backward
+ * compatibility only. They should not be used in future code.
+ *
+ * START BACKWARD COMPATIBILITY ONLY.
+ */
+#ifndef _CURSES_PRIVATE
#define _puts(s) tputs(s, 0, __cputchar)
#define _putchar(c) __cputchar(c)