aboutsummaryrefslogtreecommitdiff
path: root/backend/defines.h
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2023-01-06 11:44:59 +0200
committerIgor Pashev <pashev.igor@gmail.com>2023-01-06 15:02:21 +0200
commitab6447fbf1157bdce183cd4af40f93093fda271d (patch)
treefb7bf8d53279657922bcc60f203ebbda7b90c3db /backend/defines.h
parentbf2cad5d37a17bcc7563acb84291ea4ffcb06d0c (diff)
downloadiscan-ab6447fbf1157bdce183cd4af40f93093fda271d.tar.gz
Use stdbool.h
Fixes issues like: model-info.c:305:1: error: conflicting types for 'model_info_customise_commands'; have '_Bool(const void *, struct <anonymous> *)' 305 | model_info_customise_commands (const void *self, EpsonCmd cmd) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from model-info.c:69: model-info.h:135:8: note: previous declaration of 'model_info_customise_commands' with type 'bool(const void *, struct <anonymous> *)' 135 | bool model_info_customise_commands (const void *self, EpsonCmd cmd); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Diffstat (limited to 'backend/defines.h')
-rw-r--r--backend/defines.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/backend/defines.h b/backend/defines.h
index 9940b7b..fa634e5 100644
--- a/backend/defines.h
+++ b/backend/defines.h
@@ -30,19 +30,10 @@ extern "C"
#define MM_PER_INCH 25.4 /* exactly */
-#ifndef __cplusplus
-/*! A C++ Boolean type and corresponding keywords for our C code.
- */
-typedef enum {
- false = 0,
- true
-} bool;
-#endif
-
-
/* Run-time contract validation.
*/
#include <stdlib.h>
+#include <stdbool.h>
#include "message.h"
#define _assert(type,condition) \