diff options
author | L. E. Segovia <amy@amyspark.me> | 2022-12-03 10:52:03 -0300 |
---|---|---|
committer | L. E. Segovia <amy@amyspark.me> | 2022-12-06 17:37:38 +0000 |
commit | b2422b192d57385f7acbc3d9b0ca1a94dd89b706 (patch) | |
tree | 53eb63c574d23832f7a59d48590a76ea35d0db67 /plugins | |
parent | fd231002009b9df30ee42faa06f6c6f1f4453145 (diff) | |
download | lcms2-b2422b192d57385f7acbc3d9b0ca1a94dd89b706.tar.gz |
plugins: define PROFILES_DIR unless it's been set in the build system
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/fast_float/testbed/fast_float_testbed.c | 2 | ||||
-rw-r--r-- | plugins/threaded/testbed/threaded_testbed.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/plugins/fast_float/testbed/fast_float_testbed.c b/plugins/fast_float/testbed/fast_float_testbed.c index addef00..005bee6 100644 --- a/plugins/fast_float/testbed/fast_float_testbed.c +++ b/plugins/fast_float/testbed/fast_float_testbed.c @@ -29,7 +29,9 @@ # include "crtdbg.h" #endif +#ifndef PROFILES_DIR #define PROFILES_DIR "../../test_profiles/" +#endif // Some pixel representations typedef struct { cmsUInt8Number r, g, b; } Scanline_rgb8bits; diff --git a/plugins/threaded/testbed/threaded_testbed.c b/plugins/threaded/testbed/threaded_testbed.c index 0715ab3..ef8d90e 100644 --- a/plugins/threaded/testbed/threaded_testbed.c +++ b/plugins/threaded/testbed/threaded_testbed.c @@ -29,7 +29,9 @@ # include "crtdbg.h" #endif +#ifndef PROFILES_DIR #define PROFILES_DIR "../../test_profiles/" +#endif // A fast way to convert from/to 16 <-> 8 bits #define FROM_8_TO_16(rgb) (cmsUInt16Number) ((((cmsUInt16Number) (rgb)) << 8)|(rgb)) |