Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Mein <mein@cs.umn.edu>2005-12-03 00:46:52 +0300
committerKent Mein <mein@cs.umn.edu>2005-12-03 00:46:52 +0300
commit473983737782aba1728fba00c34204a3b09da2d3 (patch)
tree3c3ca7e4c00b9790151e7e0e131b82e57fca50c5 /source/blender/imbuf/intern/gen_dynlibtiff.py
parent9588cfdffe56a05a115f4d1664179f92ab779f18 (diff)
fix for #3498
(Swap colors on bigendian machines) I also made it so that the env variable is tried ahead of all of the other looking. (That way you can override a system default if its broken without having to upgrade) This also makes it so we can remove the OSX ifdef. So I did. lukep: If you still want it add it back in but my gut says the less ifdefs we have the better ;) Kent
Diffstat (limited to 'source/blender/imbuf/intern/gen_dynlibtiff.py')
-rwxr-xr-xsource/blender/imbuf/intern/gen_dynlibtiff.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/source/blender/imbuf/intern/gen_dynlibtiff.py b/source/blender/imbuf/intern/gen_dynlibtiff.py
index 02c7e6e856c..1ee0275854a 100755
--- a/source/blender/imbuf/intern/gen_dynlibtiff.py
+++ b/source/blender/imbuf/intern/gen_dynlibtiff.py
@@ -118,7 +118,9 @@ void libtiff_loadlibtiff(void)
char *filename;
libtiff = NULL;
-#ifndef __APPLE__ /* no standard location of libtiff in MacOS X */
+ filename = getenv("BF_TIFF_LIB");
+ if (filename) libtiff = PIL_dynlib_open(filename);
+ if (libtiff != NULL) return;
/* Try to find libtiff in a couple of standard places */
libtiff = PIL_dynlib_open("libtiff.so");
@@ -134,12 +136,7 @@ void libtiff_loadlibtiff(void)
if (libtiff != NULL) return;
/* For solaris */
libtiff = PIL_dynlib_open("/usr/openwin/lib/libtiff.so");
- if (libtiff != NULL) return;
-#endif
-
- filename = getenv("BF_TIFF_LIB");
- if (filename) libtiff = PIL_dynlib_open(filename);
}
void *libtiff_findsymbol(char *name)