/[packages]/cauldron/HDF/current/SOURCES/hdf-4.2r2-sparc.patch
ViewVC logotype

Contents of /cauldron/HDF/current/SOURCES/hdf-4.2r2-sparc.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 72538 - (show annotations) (download)
Wed Mar 16 13:11:09 2011 UTC (13 years, 1 month ago) by grenoya
File size: 2582 byte(s)
imported package HDF
1 diff -Nru HDF4.2r2.orig/hdf/src/hdfi.h HDF4.2r2/hdf/src/hdfi.h
2 --- HDF4.2r2.orig/hdf/src/hdfi.h 2007-09-17 18:45:17.000000000 +0300
3 +++ HDF4.2r2/hdf/src/hdfi.h 2008-01-06 07:23:42.000000000 +0200
4 @@ -77,6 +77,7 @@
5 #define DFMT_LINUX64 0x4441
6 #define DFMT_POWERPC64 0x1111
7 #define DFMT_LINUXPPC 0x1111
8 +#define DFMT_LINUXSPARC 0x1111
9
10 /* I/O library constants */
11 #define UNIXUNBUFIO 1
12 @@ -1444,6 +1445,66 @@
13
14 #endif /*Linux PPC */
15
16 +/* Linux Sparc32/64 */
17 +#if defined __sparc__ || defined __sparc64__
18 +
19 +#ifdef GOT_MACHINE
20 +If you get an error on this line more than one machine type has been defined.
21 +Please check your Makefile.
22 +#endif
23 +#define GOT_MACHINE
24 +
25 +#include <sys/file.h> /* for unbuffered i/o stuff */
26 +#include <sys/stat.h>
27 +#define DF_MT DFMT_LINUXPPC
28 +typedef void VOID;
29 +typedef void *VOIDP;
30 +typedef char *_fcd;
31 +typedef char char8;
32 +typedef unsigned char uchar8;
33 +typedef char int8;
34 +typedef unsigned char uint8;
35 +typedef short int int16;
36 +typedef unsigned short int uint16;
37 +#ifdef _LP64 /* 64-bit environment */
38 +typedef int int32;
39 +typedef unsigned int uint32;
40 +#else /* 32-bit environment */
41 +typedef long int int32;
42 +typedef unsigned long int uint32;
43 +#endif
44 +typedef int intn;
45 +typedef unsigned int uintn;
46 +typedef int intf; /* size of INTEGERs in Fortran compiler */
47 +typedef float float32;
48 +typedef double float64;
49 +#ifdef _LP64 /* 64-bit environment */
50 +typedef long hdf_pint_t; /* an integer the same size as a pointer */
51 +#else /* 32-bit environment */
52 +typedef int hdf_pint_t; /* an integer the same size as a pointer */
53 +#endif
54 +#define FNAME_POST_UNDERSCORE
55 +#define _fcdtocp(desc) (desc)
56 +#ifdef HAVE_FMPOOL
57 +#define FILELIB PAGEBUFIO /* enable page buffering */
58 +#else
59 +#define FILELIB UNIXBUFIO
60 +#endif
61 +
62 +/* JPEG #define's - Look in the JPEG docs before changing - (Q) */
63 +
64 +/* Determine the memory manager we are going to use. Valid values are: */
65 +/* MEM_DOS, MEM_ANSI, MEM_NAME, MEM_NOBS. See the JPEG docs for details on */
66 +/* what each does */
67 +#define JMEMSYS MEM_ANSI
68 +
69 +#ifdef __GNUC__
70 +#define HAVE_STDC
71 +#define INCLUDES_ARE_ANSI
72 +#endif
73 +
74 +#endif /* Linux Sparc32/64 */
75 +
76 /*#ifndef GOT_MACHINE
77 No machine type has been defined. Your Makefile needs to have someing like
78 -DSUN or -DUNICOS in order for the HDF internal structures to be defined

  ViewVC Help
Powered by ViewVC 1.1.30