mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-28 07:28:47 +01:00
[NYQUIST] Fix build on CYGWIN. (#557)
* [NYQUIST] Fix build on CYGWIN Cygwin requires to include unistd.h for building without errors. * [NYQUIST] Fix build on CYGWIN. Cygwin requires to include endian.h to build without errors.
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if defined(UNIX) || defined(__APPLE__)
|
#if defined(UNIX) || defined(__APPLE__) || defined(__CYGWIN__)
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ extern long ptrtoabs();
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Linux on Pentium */
|
/* Linux on Pentium */
|
||||||
#if defined(__linux__) || defined(__GLIBC__)
|
#if defined(__linux__) || defined(__GLIBC__) || defined(__CYGWIN__)
|
||||||
#include <endian.h>
|
#include <endian.h>
|
||||||
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
||||||
#define XL_LITTLE_ENDIAN
|
#define XL_LITTLE_ENDIAN
|
||||||
|
|||||||
Reference in New Issue
Block a user