Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Mein <mein@cs.umn.edu>2004-05-27 18:54:14 +0400
committerKent Mein <mein@cs.umn.edu>2004-05-27 18:54:14 +0400
commit173ecf172af09391c463f43187b62c738a73a338 (patch)
treeb34e1b2e41d2e410ff2c2ad18a8005bf2e9b881a /source/blender/src/editsound.c
parent300f10afc8bf11dc950c90bd32c571578b60440d (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/blender/src/editsound.c')
-rw-r--r--source/blender/src/editsound.c4
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"