summaryrefslogtreecommitdiff
path: root/testbed/testcms2.c
diff options
context:
space:
mode:
Diffstat (limited to 'testbed/testcms2.c')
-rw-r--r--testbed/testcms2.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/testbed/testcms2.c b/testbed/testcms2.c
index 5584f6e..1469fb3 100644
--- a/testbed/testcms2.c
+++ b/testbed/testcms2.c
@@ -8165,7 +8165,6 @@ void PrintSupportedIntents(void)
int main(int argc, char* argv[])
{
-
cmsInt32Number Exhaustive = 0;
cmsInt32Number DoSpeedTests = 1;
cmsInt32Number DoCheckTests = 1;
@@ -8176,6 +8175,11 @@ int main(int argc, char* argv[])
_CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
#endif
+ // First of all, check for the right header
+ if (cmsGetEncodedCMMversion() != LCMS_VERSION) {
+ Die("Oops, you are mixing header and shared lib!\nHeader version reports to be '%d' and shared lib '%d'\n", LCMS_VERSION, cmsGetEncodedCMMversion());
+ }
+
printf("LittleCMS %2.2f test bed %s %s\n\n", LCMS_VERSION / 1000.0, __DATE__, __TIME__);
if ((argc == 2) && strcmp(argv[1], "--exhaustive") == 0) {
@@ -8190,6 +8194,7 @@ int main(int argc, char* argv[])
printf("done.\n");
#endif
+
printf("Installing debug memory plug-in ... ");
cmsPlugin(&DebugMemHandler);
printf("done.\n");