Codebase list sludge / bbec45e
Remove old patch. Tobias Hansen 12 years ago
2 changed file(s) with 0 addition(s) and 36 deletion(s). Raw diff Collapse all Expand all
+0
-35
debian/patches/fix-endianness-check.patch less more
0 Description: Fix check for big-endian
1 Origin: http://opensludge.svn.sourceforge.net/viewvc/opensludge?revision=497&view=revision
2
3 --- a/source/DevKit/Common/moreio.cpp
4 +++ b/source/DevKit/Common/moreio.cpp
5 @@ -10,6 +10,13 @@
6
7 #define MOVETEXT 1
8
9 +#if defined __unix__ && !(defined __APPLE__)
10 +#include <endian.h>
11 +#if __BYTE_ORDER == __BIG_ENDIAN
12 +#define __BIG_ENDIAN__
13 +#endif
14 +#endif
15 +
16 char * readString (FILE * fp) {
17 int n = get2bytes (fp), a;
18 char * grabber = new char[n + 1];
19 --- a/source/Engine/moreio.cpp
20 +++ b/source/Engine/moreio.cpp
21 @@ -8,6 +8,13 @@
22
23 #include "debug.h"
24
25 +#if defined __unix__ && !(defined __APPLE__)
26 +#include <endian.h>
27 +#if __BYTE_ORDER == __BIG_ENDIAN
28 +#define __BIG_ENDIAN__
29 +#endif
30 +#endif
31 +
32 bool allowAnyFilename = true;
33
34
+0
-1
debian/patches/series less more
0 fix-endianness-check.patch