- add patch 0002-Fix-includes.patch from upstream - add patch 0003-Fix-endian-check.patch - add patch 0004-Fix-vocab_size.patch - run testsuite (but ignore errors for now, completes only on little-endian 64bit) OBS-URL: https://build.opensuse.org/request/show/225536 OBS-URL: https://build.opensuse.org/package/show/M17N/cmuclmtk?expand=0&rev=8
14 lines
350 B
Diff
14 lines
350 B
Diff
--- src/libs/mips_swap.h
|
|
+++ src/libs/mips_swap.h
|
|
@@ -20,8 +20,8 @@
|
|
|
|
#include "general.h"
|
|
|
|
-#ifndef WORDS_BIGENDIAN /* reverse byteorder */
|
|
-
|
|
+#if __BYTE_ORDER == __LITTLE_ENDIAN
|
|
+/* reverse byteorder */
|
|
/* the following works even for badly aligned pointers */
|
|
|
|
#define SWAPFIELD(x) {if (sizeof(*(x))==sizeof(short)) {SWAPHALF((x))} \
|