blob: 4aa84ac091c9f3030008b869eb99d98a8cad3178 [file] [log] [blame]
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