mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
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:
parent
e40bddc946
commit
dbe8f2e595
1 changed files with 2 additions and 1 deletions
|
|
@ -30,6 +30,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <stdbool.h>
|
||||||
|
|
||||||
#ifndef PACKAGE
|
#ifndef PACKAGE
|
||||||
#error "Please include config.h before including this file!"
|
#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! */
|
/* This type is not intended to be used in exported APIs! Use classic "int" there! */
|
||||||
#ifdef HAVE_STD_BOOL
|
#ifdef HAVE_STD_BOOL
|
||||||
typedef _Bool pa_bool_t;
|
typedef bool pa_bool_t;
|
||||||
#else
|
#else
|
||||||
typedef int pa_bool_t;
|
typedef int pa_bool_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue