1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
Subject: fix biosemi execution on big endian architectures
replace preprocessor conditional on WORD_BIGENDIAN by WORDS_BIGENDIAN.
Origin: upstream, http://cnbisrv02.epfl.ch/cgit/eegdev.git/commit/?id=be3fc5
Author: Nicolas Bourdaud <nicolas.bourdaud@gmail.com>
Last-Update: 2012-05-21
diff --git a/src/plugins/biosemi.c b/src/plugins/biosemi.c
index 4ec9c7c..473edde 100644
--- a/src/plugins/biosemi.c
+++ b/src/plugins/biosemi.c
@@ -32,11 +32,11 @@
#include <eegdev-pluginapi.h>
#ifndef le_to_cpu_32
-# if WORD_BIGENDIAN
+# if WORDS_BIGENDIAN
# define le_to_cpu_u32(data) bswap_32(data)
# else
# define le_to_cpu_u32(data) (data)
-# endif //WORD_BIGENDIAN
+# endif //WORDS_BIGENDIAN
#endif
// It should ABSOLUTELY be a power of two or the read call will fail
@@ -367,10 +367,10 @@ void process_usbbuf(struct act2_eegdev* a2dev, uint32_t* buf, ssize_t bs)
int i, start, slen = a2dev->samplelen, inoffset = a2dev->inoffset;
const struct core_interface* ci = &(a2dev->dev.ci);
-#if WORD_BIGENDIAN
+#if WORDS_BIGENDIAN
for (i=0; i<bs; i++)
buf[i] = bswap_32(buf[i]);
-#endif //WORD_BIGENDIAN
+#endif //WORDS_BIGENDIAN
// check presence synchro code and shift trigger value
start = (slen - inoffset) % slen;
--
1.7.10
|