mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 08:09:32 +02:00
libnyquist: Add support for BSD operating systems
Signed-off-by: Sol Fisher Romanoff <sol@solfisher.com>
This commit is contained in:
parent
eae754b10b
commit
61898cfbd6
@ -39,7 +39,8 @@
|
|||||||
*/
|
*/
|
||||||
#define nyquist_printf printf
|
#define nyquist_printf printf
|
||||||
|
|
||||||
#if __APPLE__ && __GNUC__ /* Mac OS X */
|
/* BSD, macOS and other Unixes */
|
||||||
|
#if __APPLE__ || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
||||||
#define NEED_ULONG 1
|
#define NEED_ULONG 1
|
||||||
#else
|
#else
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
@ -188,6 +188,16 @@ extern long ptrtoabs();
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* BSD */
|
||||||
|
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
||||||
|
#include <stdint.h>
|
||||||
|
#if defined(__LITTLE_ENDIAN__)
|
||||||
|
#define XL_LITTLE_ENDIAN
|
||||||
|
#else
|
||||||
|
#define XL_BIG_ENDIAN
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/* default important definitions */
|
/* default important definitions */
|
||||||
#ifndef NNODES
|
#ifndef NNODES
|
||||||
#define NNODES 1000
|
#define NNODES 1000
|
||||||
|
Loading…
x
Reference in New Issue
Block a user