summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarti Maria <info@littlecms.com>2011-01-20 15:36:28 +0100
committerMarti Maria <info@littlecms.com>2011-01-20 15:36:28 +0100
commiteb714c2c114c25be43891a43f12be8f718f5718b (patch)
treeb2d4a298e8167071498c492eb9687f0e3a225267 /include
parentfef1e099d253c7a9e0f78b3fcd2c4cd7c7a59284 (diff)
downloadlcms2-eb714c2c114c25be43891a43f12be8f718f5718b.tar.gz
Fixed memory leaks and safeguards against non-8 bit char
Diffstat (limited to 'include')
-rw-r--r--include/lcms2.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/lcms2.h b/include/lcms2.h
index ef121cb..ea5ac41 100644
--- a/include/lcms2.h
+++ b/include/lcms2.h
@@ -81,6 +81,10 @@ extern "C" {
typedef unsigned char cmsUInt8Number; // That is guaranteed by the C99 spec
typedef signed char cmsInt8Number; // That is guaranteed by the C99 spec
+#if CHAR_BIT != 8
+# error "Unable to find 8 bit type, unsupported compiler"
+#endif
+
// IEEE float storage numbers
typedef float cmsFloat32Number;
typedef double cmsFloat64Number;