]>
Commit | Line | Data |
---|---|---|
67566b4b JB |
1 | --- firebird-1.5.0.4290/src/jrd/common.h.orig 2004-05-28 23:36:22.000000000 +0200 |
2 | +++ firebird-1.5.0.4290/src/jrd/common.h 2004-05-28 23:44:49.000000000 +0200 | |
3 | @@ -131,6 +131,18 @@ | |
4 | #define IMPLEMENTATION isc_info_db_impl_linux_sparc /* 65 */ | |
5 | #endif /* sparc */ | |
6 | ||
7 | +#ifdef __powerpc__ | |
8 | +#define IMPLEMENTATION isc_info_db_impl_linux_ppc | |
9 | +#endif | |
10 | + | |
11 | +#ifdef __alpha__ | |
12 | +#define IMPLEMENTATION isc_info_db_impl_linux_alpha | |
13 | +#endif | |
14 | + | |
15 | +#ifdef __x86_64__ | |
16 | +#define IMPLEMENTATION isc_info_db_impl_linux_amd64 | |
17 | +#endif | |
18 | + | |
19 | #define MEMMOVE(from,to,length) memmove ((void *)to, (void *)from, (size_t) length) | |
20 | #define MOVE_FAST(from,to,length) memcpy (to, from, (int) (length)) | |
21 | #define MOVE_FASTER(from,to,length) memcpy (to, from, (int) (length)) | |
22 | --- firebird-1.5.0.4290/src/jrd/ibase.h.orig 2003-12-28 00:06:25.000000000 +0100 | |
23 | +++ firebird-1.5.0.4290/src/jrd/ibase.h 2004-05-28 23:48:49.000000000 +0200 | |
24 | @@ -1573,6 +1573,10 @@ | |
25 | ||
26 | isc_info_db_impl_linux_sparc = 65, | |
27 | ||
28 | + isc_info_db_impl_linux_ppc = 66, | |
29 | + isc_info_db_impl_linux_alpha = 67, | |
30 | + isc_info_db_impl_linux_amd64 = 68, | |
31 | + | |
32 | isc_info_db_impl_last_value /* Leave this LAST! */ | |
33 | }; | |
34 | ||
35 | --- firebird-1.5.0.4290/src/jrd/pag.cpp.orig 2004-05-28 22:16:09.000000000 +0200 | |
36 | +++ firebird-1.5.0.4290/src/jrd/pag.cpp 2004-05-28 23:58:59.000000000 +0200 | |
37 | @@ -180,6 +180,15 @@ | |
38 | #ifdef __sparc__ | |
39 | #define CLASS 20 | |
40 | #endif | |
41 | +#ifdef __powerpc__ | |
42 | +#define CLASS 30 | |
43 | +#endif | |
44 | +#ifdef __alpha__ | |
45 | +#define CLASS 31 | |
46 | +#endif | |
47 | +#ifdef __x86_64__ | |
48 | +#define CLASS 32 | |
49 | +#endif | |
50 | #endif | |
51 | ||
52 | #ifdef FREEBSD | |
53 | --- firebird-1.5.0.4290/src/remote/xdr.cpp.orig 2004-05-29 00:05:08.000000000 +0200 | |
54 | +++ firebird-1.5.0.4290/src/remote/xdr.cpp 2004-05-29 00:06:09.000000000 +0200 | |
55 | @@ -39,10 +39,10 @@ | |
56 | // The simpliest way to check it is to issue | |
57 | // "select abs(2.0/3.0) from rdb$database" from correct client | |
58 | // It will return big strange value in case of invalid define | |
59 | -#if defined(i386) || defined(I386) || defined(_M_IX86) | |
60 | +#if defined(i386) || defined(I386) || defined(_M_IX86) || defined(__alpha__) || defined(__x86_64__) | |
61 | #define SWAP_DOUBLE | |
62 | #else | |
63 | -#if !defined(sparc) && !defined(__sparc__) && !defined(PowerPC) | |
64 | +#if !defined(sparc) && !defined(__sparc__) && !defined(PowerPC) && !defined(__powerpc__) | |
65 | #error "Define SWAP_DOUBLE for your platform correctly !" | |
66 | #endif | |
67 | #endif |