mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
Make gcc --std=c99 happy
We're now more or less C99 compliant
This commit is contained in:
parent
dfd706da71
commit
9133c6c935
5 changed files with 14 additions and 1 deletions
|
|
@ -10,6 +10,10 @@
|
|||
* Version 0.4 Leaky Normalized LMS - pre whitening algorithm
|
||||
*/
|
||||
|
||||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
#include <stdint.h>
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@
|
|||
#include <pulsecore/source.h>
|
||||
#include <pulsecore/core-util.h>
|
||||
#include <pulsecore/log.h>
|
||||
#include <pulsecore/macro.h>
|
||||
#include <pulsecore/modargs.h>
|
||||
#include <pulsecore/dbus-shared.h>
|
||||
#include <pulsecore/namereg.h>
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ struct pa_flist {
|
|||
pa_atomic_ptr_t stored;
|
||||
/* Stack that contains empty list elements */
|
||||
pa_atomic_ptr_t empty;
|
||||
pa_flist_elem table[0];
|
||||
pa_flist_elem table[];
|
||||
};
|
||||
|
||||
/* Lock free pop from linked list stack */
|
||||
|
|
|
|||
|
|
@ -84,6 +84,10 @@ static inline size_t PA_PAGE_ALIGN(size_t l) {
|
|||
#define PA_DECLARE_ALIGNED(n,t,v) t v
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define typeof __typeof__
|
||||
#endif
|
||||
|
||||
/* The users of PA_MIN and PA_MAX, PA_CLAMP, PA_ROUND_UP should be
|
||||
* aware that these macros on non-GCC executed code with side effects
|
||||
* twice. It is thus considered misuse to use code with side effects
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
#include <assert.h>
|
||||
#include <inttypes.h>
|
||||
#include <time.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue