]> git.meshlink.io Git - meshlink/blobdiff - src/system.h
Avoid allocating packet buffers unnecessarily.
[meshlink] / src / system.h
index 69622b2ca412a47eaf58954f072b5c892ed93af9..dc3928748a1930394a6081c123b6f4da4577bf62 100644 (file)
@@ -1,6 +1,9 @@
+#ifndef MESHLINK_SYSTEM_H
+#define MESHLINK_SYSTEM_H
+
 /*
     system.h -- system headers
-    Copyright (C) 2014 Guus Sliepen <guus@meshlink.io>
+    Copyright (C) 2014, 2017 Guus Sliepen <guus@meshlink.io>
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
-#ifndef __MESHLINK_SYSTEM_H__
-#define __MESHLINK_SYSTEM_H__
-
 #include "../config.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
@@ -42,4 +36,4 @@ typedef int bool;
 typedef int socklen_t;
 #endif
 
-#endif /* __MESHLINK_SYSTEM_H__ */
+#endif