summaryrefslogtreecommitdiff
blob: 4aa84ac091c9f3030008b869eb99d98a8cad3178 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Author: Andreas Beckmann <anbe@debian.org>
Description: use a consistent bool type
Bug-Debian: #749724

--- a/i7z.h
+++ b/i7z.h
@@ -11,18 +11,13 @@
  * ----------------------------------------------------------------------- */
 
 #include <sys/time.h>
+#include <stdbool.h>
 
 #define i7z_VERSION_INFO "svn-r93-(27-MAY-2013)"
 
 //structure to store the information about the processor
 #define proccpuinfo "/proc/cpuinfo"
 
-#ifndef bool
-#define bool int
-#endif
-#define false 0
-#define true 1
-
 #define MAX_PROCESSORS  128
 #define MAX_HI_PROCESSORS    MAX_PROCESSORS
 #define MAX_SK_PROCESSORS    (MAX_PROCESSORS/4)
--- a/cpuinfo.c
+++ b/cpuinfo.c
@@ -2,10 +2,8 @@
 #include "string.h"
 #include "stdlib.h"
 #include "assert.h"
+#include <stdbool.h>
 #define MAX_PROCESSORS  32
-#define bool int
-#define false 0
-#define true 1
 
 #define MAX_HI_PROCESSORS    MAX_PROCESSORS