projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
78c5b1c
)
Unconditionally include stdbool.h and inttypes.h.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sat, 7 Oct 2017 21:20:36 +0000
(23:20 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sat, 7 Oct 2017 21:20:36 +0000
(23:20 +0200)
src/have.h
patch
|
blob
|
history
src/system.h
patch
|
blob
|
history
diff --git
a/src/have.h
b/src/have.h
index
5bd4d66
..
11fa56a
100644
(file)
--- a/
src/have.h
+++ b/
src/have.h
@@
-30,15
+30,19
@@
#endif
#include <stdio.h>
#endif
#include <stdio.h>
+#include <stdbool.h>
+#include <stdint.h>
+#include <inttypes.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <ctype.h>
-#include <signal.h>
#include <errno.h>
#include <errno.h>
+#include <limits.h>
+
#include <fcntl.h>
#include <unistd.h>
#include <fcntl.h>
#include <unistd.h>
-#include <
limits
.h>
+#include <
signal
.h>
#ifdef HAVE_MINGW
#include <w32api.h>
#ifdef HAVE_MINGW
#include <w32api.h>
@@
-55,10
+59,6
@@
#include <termios.h>
#endif
#include <termios.h>
#endif
-#ifdef HAVE_INTTYPES_H
-#include <inttypes.h>
-#endif
-
#ifdef HAVE_ALLOCA_H
#include <alloca.h>
#endif
#ifdef HAVE_ALLOCA_H
#include <alloca.h>
#endif
diff --git
a/src/system.h
b/src/system.h
index
504e59c
..
14db7f5
100644
(file)
--- a/
src/system.h
+++ b/
src/system.h
@@
-25,12
+25,6
@@
#include "have.h"
#include "have.h"
-#ifndef HAVE_STDBOOL_H
-typedef int bool;
-#define true 1
-#define false 0
-#endif
-
#ifndef HAVE_STRSIGNAL
# define strsignal(p) ""
#endif
#ifndef HAVE_STRSIGNAL
# define strsignal(p) ""
#endif