24 lines
809 B
Diff
24 lines
809 B
Diff
--- app/sanity.c 2009-08-04 18:32:37.000000000 +0200
|
|
+++ app/sanity.c 2009-08-04 19:47:54.000000000 +0200
|
|
@@ -257,6 +257,7 @@
|
|
gint babl_major_version;
|
|
gint babl_minor_version;
|
|
gint babl_micro_version;
|
|
+ gint bversion;
|
|
|
|
#define BABL_REQUIRED_MAJOR 0
|
|
#define BABL_REQUIRED_MINOR 0
|
|
@@ -266,9 +267,9 @@
|
|
&babl_minor_version,
|
|
&babl_micro_version);
|
|
|
|
- if (babl_major_version < BABL_REQUIRED_MAJOR ||
|
|
- babl_minor_version < BABL_REQUIRED_MINOR ||
|
|
- babl_micro_version < BABL_REQUIRED_MICRO)
|
|
+ bversion = babl_micro_version + babl_minor_version*100 + babl_major_version*10000;
|
|
+
|
|
+if (bversion < (BABL_REQUIRED_MICRO + BABL_REQUIRED_MINOR*100 + BABL_REQUIRED_MAJOR*10000))
|
|
{
|
|
return g_strdup_printf
|
|
("BABL version too old!\n\n"
|