diff options
author | Sergey A. Osokin <osa@FreeBSD.org> | 2010-08-03 10:26:57 +0000 |
---|---|---|
committer | Sergey A. Osokin <osa@FreeBSD.org> | 2010-08-03 10:26:57 +0000 |
commit | 214b06a42c3d7c239b4a04ea91486973892707ba (patch) | |
tree | afa55c4a92e026d48ee93107fc05d648ce9e4b8e /graphics/libecwj2/files/patch-Source-C-NCSUtil-util.c | |
parent | Allows building executables simply from sbcl. (diff) |
Add graphics/libecwj2 that implements support for the JPEG2000 and
ECW image formats.
Submitted by: glebius
Notes
Notes:
svn path=/head/; revision=258676
Diffstat (limited to 'graphics/libecwj2/files/patch-Source-C-NCSUtil-util.c')
-rw-r--r-- | graphics/libecwj2/files/patch-Source-C-NCSUtil-util.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/graphics/libecwj2/files/patch-Source-C-NCSUtil-util.c b/graphics/libecwj2/files/patch-Source-C-NCSUtil-util.c new file mode 100644 index 000000000000..53ae91e1d8f5 --- /dev/null +++ b/graphics/libecwj2/files/patch-Source-C-NCSUtil-util.c @@ -0,0 +1,30 @@ +--- Source/C/NCSUtil/util.c.orig 2009-04-05 21:59:28.000000000 +0400 ++++ Source/C/NCSUtil/util.c 2009-04-05 22:05:04.000000000 +0400 +@@ -163,15 +163,9 @@ + if(nSizeBytes < 1024) { + #ifdef WIN32 + sprintf(buf, "%I64d bytes", nSizeBytes); +-#elif defined SOLARIS +- sprintf(buf, "%lld bytes", nSizeBytes); + #elif defined MACINTOSH + sprintf(buf, "%I64d bytes", nSizeBytes); +-#elif defined HPUX +- sprintf(buf, "%lld bytes", nSizeBytes); +-#elif defined LINUX +- sprintf(buf, "%lld bytes", nSizeBytes); +-#elif defined MACOSX ++#elif defined POSIX + sprintf(buf, "%lld bytes", nSizeBytes); + #else + #error whats the 64bit format specifier? +@@ -306,6 +300,10 @@ + + return(NCS_MACINTOSH_OSX); + ++#elif defined FREEBSD ++ ++ return(NCS_FREEBSD); ++ + #else /* WIN32 */ + #error - NCSGetPlatform() + #endif /* WIN32 */ |