projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e40bddc
)
macro: typedef pa_bool_t to bool instead of _Bool
author
Arun Raghavan
<arun.raghavan@collabora.co.uk>
Mon, 19 Sep 2011 08:08:03 +0000
(13:38 +0530)
committer
Arun Raghavan
<arun.raghavan@collabora.co.uk>
Mon, 17 Oct 2011 11:12:59 +0000
(16:42 +0530)
They're functionally equivalent, and the former lets the header be
included in C++ as well.
src/pulsecore/macro.h
patch
|
blob
|
history
diff --git
a/src/pulsecore/macro.h
b/src/pulsecore/macro.h
index
7459e6f
..
c6d7d56
100644
(file)
--- a/
src/pulsecore/macro.h
+++ b/
src/pulsecore/macro.h
@@
-30,6
+30,7
@@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <stdbool.h>
#ifndef PACKAGE
#error "Please include config.h before including this file!"
@@
-178,7
+179,7
@@
static inline size_t PA_PAGE_ALIGN(size_t l) {
/* This type is not intended to be used in exported APIs! Use classic "int" there! */
#ifdef HAVE_STD_BOOL
-typedef
_B
ool pa_bool_t;
+typedef
b
ool pa_bool_t;
#else
typedef int pa_bool_t;
#endif