blob: 2c20840a54f60d52f55c6aafc05af8d8246ea0c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$NetBSD: patch-libxorp_xorp.h,v 1.2 2012/07/03 17:36:10 joerg Exp $
--- libxorp/xorp.h.orig 2009-01-05 18:30:58.000000000 +0000
+++ libxorp/xorp.h
@@ -39,6 +39,7 @@
#endif
#if defined (__cplusplus) && !defined(__STL_NO_NAMESPACES)
+namespace std {};
using namespace std;
#endif
@@ -173,9 +174,7 @@ using namespace std::rel_ops;
#define FALSE (0)
#define TRUE (!FALSE)
#endif /* TRUE, FALSE */
-#ifndef __cplusplus
-typedef enum { true = TRUE, false = FALSE } bool;
-#endif
+#include <stdbool.h>
typedef bool bool_t;
/*
|