From 214b06a42c3d7c239b4a04ea91486973892707ba Mon Sep 17 00:00:00 2001 From: "Sergey A. Osokin" Date: Tue, 3 Aug 2010 10:26:57 +0000 Subject: Add graphics/libecwj2 that implements support for the JPEG2000 and ECW image formats. Submitted by: glebius --- .../libecwj2/files/patch-Source-include-NCSDefs.h | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 graphics/libecwj2/files/patch-Source-include-NCSDefs.h (limited to 'graphics/libecwj2/files/patch-Source-include-NCSDefs.h') diff --git a/graphics/libecwj2/files/patch-Source-include-NCSDefs.h b/graphics/libecwj2/files/patch-Source-include-NCSDefs.h new file mode 100644 index 000000000000..7d5288ed4de2 --- /dev/null +++ b/graphics/libecwj2/files/patch-Source-include-NCSDefs.h @@ -0,0 +1,55 @@ +--- Source/include/NCSDefs.h.orig 2006-07-03 05:15:22.000000000 +0400 ++++ Source/include/NCSDefs.h 2010-07-29 16:08:26.000000000 +0400 +@@ -57,10 +57,12 @@ + #define NCS_64BIT + #endif + +-#if (defined(MACINTOSH)||defined(SOLARIS)||defined(IRIX)||defined(PALM)||defined(HPUX)||defined(MACOSX))&&(!defined(X86)) +-#define NCSBO_MSBFIRST +-#else // WIN32, LINUX (i386) +-#define NCSBO_LSBFIRST ++#include ++ ++#if (BYTE_ORDER == LITTLE_ENDIAN) ++#define NCSBO_LSBFIRST ++#else ++#define NCSBO_MSBFIRST + #endif + + #if !defined(_WIN32_WCE)&&!defined(UNALIGNED) +@@ -180,13 +182,15 @@ + #define IntersectRect(A, B, C) SectRect(B, C, A) + #define ZeroMemory(DATA, SIZE) memset(DATA, 0, SIZE) + +-#elif defined SOLARIS || defined LINUX || defined HPUX ++#elif defined SOLARIS || defined LINUX || defined HPUX || defined FREEBSD + +-#ifdef LINUX ++#if defined LINUX || defined FREEBSD + #define wcsicmp wcscasecmp + #endif + ++#ifndef FREEBSD + #include ++#endif + #include + #include + #include +@@ -195,7 +199,7 @@ + #define MAXDOUBLE DBL_MAX //1.7976931348623158e+308 + #endif /* !MAXDOUBLE */ + +-#ifdef LINUX ++#if defined LINUX || defined FREEBSD + #define NCS_FQNAN NAN //0x0002 + #define NCS_NAN NAN + #elif defined(SOLARIS) +@@ -299,7 +303,7 @@ + + #define MAX_PATH 1024 + +-#elif defined SOLARIS || defined LINUX || defined HPUX ++#elif defined SOLARIS || defined LINUX || defined HPUX || defined FREEBSD + + #define MAX_PATH PATH_MAX + -- cgit v1.2.3