]> git.pld-linux.org Git - packages/hdf.git/blob - hdf-morearchs.patch
- support ppc with gcc/linux
[packages/hdf.git] / hdf-morearchs.patch
1 --- HDF4.2r0/hdf/src/hdfi.h.orig        2003-11-01 01:17:14.000000000 +0100
2 +++ HDF4.2r0/hdf/src/hdfi.h     2004-03-06 15:39:09.628963696 +0100
3 @@ -161,7 +161,7 @@
4   *      be renamed as LONGNEINT32.
5   */
6  
7 -#if (defined(SUN) || defined(sun) || defined(__sun__) || defined(__SUNPRO_C)) & !defined(__i386)
8 +#if (defined(SUN) || defined(sun) || defined(__sun__) || defined(__sparc__) || defined(__SUNPRO_C)) & !defined(__i386)
9  #ifdef __STDC__
10  #define ANSISUN
11  #else /* __STDC__ */
12 @@ -292,7 +292,7 @@
13  #endif /* SUN */
14  
15  
16 -#if defined(IBM6000) || defined(_AIX)
17 +#if defined(IBM6000) || defined(_AIX) || defined(__powerpc__)
18  
19  #ifndef IBM6000
20  #define IBM6000
21 @@ -336,6 +336,9 @@
22  typedef int               hdf_pint_t;   /* an integer the same size as a pointer */
23  #endif /*AIX5L64 */
24  #define _fcdtocp(desc) (desc)
25 +#ifdef __GNUC__
26 +#define FNAME_POST_UNDERSCORE
27 +#endif
28  #ifdef  HAVE_FMPOOL
29  #define FILELIB PAGEBUFIO  /* enable page buffering */
30  #else
This page took 0.080865 seconds and 4 git commands to generate.