]> git.pld-linux.org Git - packages/openinventor.git/blob - openinventor-morearchs.patch
a2a6c7b0d1214276d78e7a6adbe818892022d1d0
[packages/openinventor.git] / openinventor-morearchs.patch
1 --- inventor/lib/database/include/machine.h.orig        Wed Oct 25 23:47:47 2000
2 +++ inventor/lib/database/include/machine.h     Tue Oct 29 12:58:33 2002
3 @@ -150,6 +150,49 @@
4  
5  #endif /* __i386__ */
6  
7 +/*
8 + * Linux alpha machine dependent setup
9 + */
10 +
11 +#ifdef __alpha__
12 +
13 +#define MACHINE_WORD_FORMAT DGL_LITTLE_ENDIAN
14 +#define MACHINE_FLOAT_FORMAT DGL_NON_IEEE
15 +
16 +#endif
17 +
18 +/*
19 + * Linux ppc machine dependent setup
20 + */
21 +
22 +#ifdef __powerpc__
23 +
24 +#define MACHINE_WORD_FORMAT DGL_BIG_ENDIAN
25 +#define MACHINE_FLOAT_FORMAT DGL_BIG_IEEE
26 +
27 +#endif
28 +
29 +/*
30 + * Linux sparc machine dependent setup
31 + */
32 +
33 +#ifdef __sparc__
34 +
35 +#define MACHINE_WORD_FORMAT DGL_BIG_ENDIAN
36 +#define MACHINE_FLOAT_FORMAT DGL_BIG_IEEE
37 +
38 +#endif
39 +
40 +/*
41 + * Linux AMD64 machine dependent setup
42 + */
43 +
44 +#ifdef __x86_64__
45 +
46 +#define MACHINE_WORD_FORMAT DGL_LITTLE_ENDIAN
47 +#define MACHINE_FLOAT_FORMAT DGL_NON_IEEE
48 +
49 +#endif
50  
51  /*
52   * IBM RS/6000 series machine dependent setup
53 @@ -309,7 +352,7 @@
54   */
55  
56  #if MACHINE_FLOAT_FORMAT == DGL_NON_IEEE
57 -#ifdef __i386__
58 +#if defined(__i386__) || defined(__alpha__) || defined(__x86_64__)
59  void mem_hton_float(float *t, float *f);
60  void mem_ntoh_float(float *t, float *f);
61  void mem_hton_double(double *t, double *f);
62 --- inventor/lib/database/src/so/SoType.c++.orig        Wed Mar 17 12:41:24 2004
63 +++ inventor/lib/database/src/so/SoType.c++     Wed Mar 17 13:10:58 2004
64 @@ -224,9 +224,17 @@
65  #endif
66  #else // __sgi
67  #ifdef DEBUG
68 +#if defined(__x86_64__)
69 +       char *longestName = "/usr/lib64/InventorDSO/.so";
70 +#else
71         char *longestName = "/usr/lib/InventorDSO/.so";
72 +#endif
73  #endif // DEBUG
74 +#if defined(__x86_64__)
75 +       const char *libDir = "lib64";
76 +#else
77         const char *libDir = "lib";
78 +#endif
79         const char *abiName = "";
80         //
81         // XXX Alex -- add additional layer of abstraction on top
This page took 0.057707 seconds and 2 git commands to generate.