Skip to content

Commit

Permalink
Don't use C99 stdbool.h
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed Mar 21, 2023
1 parent 079943e commit 9885ecc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/common/pa_front.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
#include <string.h>
#include <stdlib.h> /* needed for strtol() */
#include <assert.h> /* needed by PA_VALIDATE_ENDIANNESS */
#include <stdbool.h>

#include "portaudio.h"
#include "pa_util.h"
Expand Down Expand Up @@ -155,7 +154,7 @@ static PaUtilHostApiRepresentation **hostApis_ = 0;
static int hostApisCount_ = 0;
static int defaultHostApiIndex_ = 0;
static int initializationCount_ = 0;
static bool initializing_ = false;
static int initializing_ = 0;
static int deviceCount_ = 0;

PaUtilStreamRepresentation *firstOpenStream_ = NULL;
Expand Down Expand Up @@ -375,7 +374,7 @@ PaError Pa_Initialize( void )
// This can happen if a driver like FlexAsio itself uses portaudio
// and avoids a stack overflow in the user application.
// https://github.com/PortAudio/portaudio/issues/766
initializing_ = true;
initializing_ = 1;

PA_VALIDATE_TYPE_SIZES;
PA_VALIDATE_ENDIANNESS;
Expand All @@ -387,7 +386,7 @@ PaError Pa_Initialize( void )
if( result == paNoError )
++initializationCount_;

initializing_ = false;
initializing_ = 0;
}

PA_LOGAPI_EXIT_PAERROR( "Pa_Initialize", result );
Expand Down

0 comments on commit 9885ecc

Please sign in to comment.