diff options
author | Kent Mein <mein@cs.umn.edu> | 2004-05-27 18:54:14 +0400 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2004-05-27 18:54:14 +0400 |
commit | 173ecf172af09391c463f43187b62c738a73a338 (patch) | |
tree | b34e1b2e41d2e410ff2c2ad18a8005bf2e9b881a /source | |
parent | 300f10afc8bf11dc950c90bd32c571578b60440d (diff) |
Panagiotis Papadakos's patch to fix the following:
Implicit declaration of swab in Linux, needs to define __USE_XOPEN at
source/blender/src:
I also added #includst <stdlib.h> to this file to fix it on solaris as well.
Kent
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/src/editsound.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/src/editsound.c b/source/blender/src/editsound.c index 9d22b42e4d9..8f384da000b 100644 --- a/source/blender/src/editsound.c +++ b/source/blender/src/editsound.c @@ -31,6 +31,7 @@ */ #include <stdio.h> +#include <stdlib.h> #include <math.h> #include <string.h> #include <fcntl.h> @@ -40,8 +41,11 @@ #endif #ifndef WIN32 +#define __USE_XOPEN /* Needed for swab on linux */ #include <unistd.h> +#undef __USE_XOPEN #else + #include <io.h> #endif #include "MEM_guardedalloc.h" |