From dbe8f2e595d63ce3286679059952c17d2eeb8225 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Mon, 19 Sep 2011 13:38:03 +0530 Subject: [PATCH] macro: typedef pa_bool_t to bool instead of _Bool They're functionally equivalent, and the former lets the header be included in C++ as well. --- src/pulsecore/macro.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pulsecore/macro.h b/src/pulsecore/macro.h index 7459e6f19..c6d7d5660 100644 --- a/src/pulsecore/macro.h +++ b/src/pulsecore/macro.h @@ -30,6 +30,7 @@ #include #include #include +#include #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 _Bool pa_bool_t; +typedef bool pa_bool_t; #else typedef int pa_bool_t; #endif