summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2009-11-05 16:39:02 +0000
committerAntonin Descampe <antonin@gmail.com>2009-11-05 16:39:02 +0000
commit449d7bedb62ba1f13768ec2ed355f47f2ea89580 (patch)
treeec4a8f9443fa93176e4151f440014f33acecf24e
parentbfd3fe8a4aafb263fedc56345f3e048e52e56326 (diff)
fixed "tiffio" header inclusion to use user version on Win32 system only (otherwise assume its existence in system headers).
-rw-r--r--ChangeLog3
-rw-r--r--codec/convert.c6
-rw-r--r--openjpeg.xcodeproj/project.pbxproj2
3 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c2ee8678..51dd1187 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,9 @@ What's New for OpenJPEG
! : changed
+ : added
+November 5, 2009
+* [antonin] fixed "tiffio" header inclusion to use user version on Win32 system only (otherwise assume its existence in system headers).
+
September 10, 2009
* [antonin] fixed minor bugs which were triggering warnings at compilation (different signedness, wrong pointer type, etc)
diff --git a/codec/convert.c b/codec/convert.c
index 465b0e0b..a9ffb0da 100644
--- a/codec/convert.c
+++ b/codec/convert.c
@@ -32,8 +32,12 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include "openjpeg.h"
+#ifdef WIN32
#include "../libs/libtiff/tiffio.h"
+#else
+#include <tiffio.h>
+#endif /* WIN32 */
+#include "openjpeg.h"
#include "convert.h"
/*
diff --git a/openjpeg.xcodeproj/project.pbxproj b/openjpeg.xcodeproj/project.pbxproj
index 7bc8a945..4caa23b6 100644
--- a/openjpeg.xcodeproj/project.pbxproj
+++ b/openjpeg.xcodeproj/project.pbxproj
@@ -697,6 +697,7 @@
69F984AA0D40A3AE00C2791C /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
COPY_PHASE_STRIP = NO;
};
name = Debug;
@@ -704,6 +705,7 @@
69F984AB0D40A3AE00C2791C /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
COPY_PHASE_STRIP = YES;
};
name = Release;