summaryrefslogtreecommitdiff
path: root/src/lcms2_internal.h
diff options
context:
space:
mode:
authorMarti Maria <info@littlecms.com>2014-02-14 09:44:26 +0100
committerMarti Maria <info@littlecms.com>2014-02-14 09:44:26 +0100
commit3e31c44f4cd6c44280cd18708cc2223dcddf670a (patch)
treea43fc1d0cbcc13a737e1abcbb8d3b05320b33879 /src/lcms2_internal.h
parent91bbb2a7bea5f998965ce324112a37d5ae093029 (diff)
downloadlcms2-3e31c44f4cd6c44280cd18708cc2223dcddf670a.tar.gz
Fixed context guessing
Diffstat (limited to 'src/lcms2_internal.h')
-rw-r--r--src/lcms2_internal.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lcms2_internal.h b/src/lcms2_internal.h
index 61ceb00..31d7104 100644
--- a/src/lcms2_internal.h
+++ b/src/lcms2_internal.h
@@ -255,8 +255,6 @@ typedef enum {
} _cmsMemoryClient;
-// Magic number for identifying a valid context
-#define cmsContextMagicNumber 0x63747832 // 'ctx2'
// Container for memory management plug-in.
typedef struct {
@@ -276,7 +274,7 @@ void _cmsInstallAllocFunctions(cmsPluginMemHandler* Plugin, _cmsMemPluginChunkT
// Internal structure for context
struct _cmsContext_struct {
- cmsUInt32Number Magic; // Magic number that identifies a valid context id in the new style
+ struct _cmsContext_struct* Next; // Points to next context in the new style
_cmsSubAllocator* MemPool; // The memory pool that stores context data
void* chunks[MemoryClientMax]; // array of pointers to client chunks. Memory itself is hold in the suballocator.