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.
This commit is contained in:
Arun Raghavan 2011-09-19 13:38:03 +05:30
parent e40bddc946
commit dbe8f2e595

View file

@ -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 _Bool pa_bool_t;
typedef bool pa_bool_t;
#else
typedef int pa_bool_t;
#endif