You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
2.5 KiB
79 lines
2.5 KiB
1 year ago
|
diff -up hdf-4.2.4-snap8/hdf/src/hdfi.h.sparc hdf-4.2.4-snap8/hdf/src/hdfi.h
|
||
|
--- hdf-4.2.4-snap8/hdf/src/hdfi.h.sparc 2010-02-01 13:28:25.361387271 -0700
|
||
|
+++ hdf-4.2.4-snap8/hdf/src/hdfi.h 2010-02-01 13:31:46.343387138 -0700
|
||
|
@@ -77,6 +77,7 @@
|
||
|
#define DFMT_LINUX64 0x4441
|
||
|
#define DFMT_POWERPC64 0x1111
|
||
|
#define DFMT_LINUXPPC 0x1111
|
||
|
+#define DFMT_LINUXSPARC 0x1111
|
||
|
|
||
|
/* I/O library constants */
|
||
|
#define UNIXUNBUFIO 1
|
||
|
@@ -1392,6 +1393,66 @@ typedef long hdf_pint_t;
|
||
|
|
||
|
#endif /*Linux PPC */
|
||
|
|
||
|
+/* Linux Sparc32/64 */
|
||
|
+#if defined __sparc__ || defined __sparc64__
|
||
|
+
|
||
|
+#ifdef GOT_MACHINE
|
||
|
+If you get an error on this line more than one machine type has been defined.
|
||
|
+Please check your Makefile.
|
||
|
+#endif
|
||
|
+#define GOT_MACHINE
|
||
|
+
|
||
|
+#include <sys/file.h> /* for unbuffered i/o stuff */
|
||
|
+#include <sys/stat.h>
|
||
|
+#define DF_MT DFMT_LINUXPPC
|
||
|
+typedef void VOID;
|
||
|
+typedef void *VOIDP;
|
||
|
+typedef char *_fcd;
|
||
|
+typedef char char8;
|
||
|
+typedef unsigned char uchar8;
|
||
|
+typedef char int8;
|
||
|
+typedef unsigned char uint8;
|
||
|
+typedef short int int16;
|
||
|
+typedef unsigned short int uint16;
|
||
|
+#ifdef _LP64 /* 64-bit environment */
|
||
|
+typedef int int32;
|
||
|
+typedef unsigned int uint32;
|
||
|
+#else /* 32-bit environment */
|
||
|
+typedef long int int32;
|
||
|
+typedef unsigned long int uint32;
|
||
|
+#endif
|
||
|
+typedef int intn;
|
||
|
+typedef unsigned int uintn;
|
||
|
+typedef int intf; /* size of INTEGERs in Fortran compiler */
|
||
|
+typedef float float32;
|
||
|
+typedef double float64;
|
||
|
+#ifdef _LP64 /* 64-bit environment */
|
||
|
+typedef long hdf_pint_t; /* an integer the same size as a pointer */
|
||
|
+#else /* 32-bit environment */
|
||
|
+typedef int hdf_pint_t; /* an integer the same size as a pointer */
|
||
|
+#endif
|
||
|
+#define FNAME_POST_UNDERSCORE
|
||
|
+#define _fcdtocp(desc) (desc)
|
||
|
+#ifdef HAVE_FMPOOL
|
||
|
+#define FILELIB PAGEBUFIO /* enable page buffering */
|
||
|
+#else
|
||
|
+#define FILELIB UNIXBUFIO
|
||
|
+#endif
|
||
|
+
|
||
|
+/* JPEG #define's - Look in the JPEG docs before changing - (Q) */
|
||
|
+
|
||
|
+/* Determine the memory manager we are going to use. Valid values are: */
|
||
|
+/* MEM_DOS, MEM_ANSI, MEM_NAME, MEM_NOBS. See the JPEG docs for details on */
|
||
|
+/* what each does */
|
||
|
+#define JMEMSYS MEM_ANSI
|
||
|
+
|
||
|
+#ifdef __GNUC__
|
||
|
+#define HAVE_STDC
|
||
|
+#define INCLUDES_ARE_ANSI
|
||
|
+#endif
|
||
|
+
|
||
|
+#endif /* Linux Sparc32/64 */
|
||
|
+
|
||
|
/*-----------------------------------------------------*/
|
||
|
/* 64-bit Free BSD */
|
||
|
|