mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-04-08 08:41:21 +00:00
Move declaration of fluid_alloc() to fluidsynth_priv.h
Fixes build of opensles, oboe and coreaudio.
This commit is contained in:
parent
78e1ccd75a
commit
f5c24db5c7
2 changed files with 4 additions and 2 deletions
|
@ -739,6 +739,4 @@ static FLUID_INLINE void *fluid_align_ptr(const void *ptr, unsigned int alignmen
|
|||
|
||||
#define FLUID_DEFAULT_ALIGNMENT (64U)
|
||||
|
||||
void* fluid_alloc(size_t len);
|
||||
|
||||
#endif /* _FLUID_SYS_H */
|
||||
|
|
|
@ -133,6 +133,10 @@ typedef void (*fluid_rvoice_function_t)(void *obj, const fluid_rvoice_param_t pa
|
|||
#define FLUID_NEW(_t) (_t*)FLUID_MALLOC(sizeof(_t))
|
||||
#define FLUID_ARRAY_ALIGNED(_t,_n,_a) (_t*)FLUID_MALLOC((_n)*sizeof(_t) + ((unsigned int)_a - 1u))
|
||||
#define FLUID_ARRAY(_t,_n) FLUID_ARRAY_ALIGNED(_t,_n,1u)
|
||||
|
||||
void* fluid_alloc(size_t len);
|
||||
|
||||
/* File access */
|
||||
#define FLUID_FOPEN(_f,_m) fopen(_f,_m)
|
||||
#define FLUID_FCLOSE(_f) fclose(_f)
|
||||
#define FLUID_FREAD(_p,_s,_n,_f) fread(_p,_s,_n,_f)
|
||||
|
|
Loading…
Reference in a new issue