diff options
| author | Campbell Barton <ideasman42@gmail.com> | 2011-07-08 04:15:46 +0000 |
|---|---|---|
| committer | Campbell Barton <ideasman42@gmail.com> | 2011-07-08 04:15:46 +0000 |
| commit | 262ed2816e1faa073e8ca16b7d474100c8a9cf4f (patch) | |
| tree | 5fa34c67e2acb023431f5fd8ad5afd458fcb9f23 | |
| parent | fix for building with cmake, renaming the GTK2 package didnt work right, very... (diff) | |
| download | inkscape-262ed2816e1faa073e8ca16b7d474100c8a9cf4f.tar.gz inkscape-262ed2816e1faa073e8ca16b7d474100c8a9cf4f.zip | |
fix for building without LCMS
(bzr r10425)
| -rw-r--r-- | src/color-profile.cpp | 5 | ||||
| -rw-r--r-- | src/color-profile.h | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/color-profile.cpp b/src/color-profile.cpp index 7c9e83e3c..c2267d827 100644 --- a/src/color-profile.cpp +++ b/src/color-profile.cpp @@ -103,8 +103,10 @@ static SPObjectClass *cprof_parent_class; class ColorProfileImpl { public: +#if ENABLE_LCMS static cmsHPROFILE _sRGBProf; static cmsHPROFILE _NullProf; +#endif // ENABLE_LCMS ColorProfileImpl(); @@ -125,8 +127,9 @@ public: #endif // ENABLE_LCMS }; -ColorProfileImpl::ColorProfileImpl() : +ColorProfileImpl::ColorProfileImpl() #if ENABLE_LCMS + : _profHandle(0), _profileClass(icSigInputClass), _profileSpace(icSigRgbData), diff --git a/src/color-profile.h b/src/color-profile.h index a1b83bbef..28096cd20 100644 --- a/src/color-profile.h +++ b/src/color-profile.h @@ -32,8 +32,9 @@ struct ColorProfileClass { /** Color Profile. */ struct ColorProfile : public SPObject { +#if ENABLE_LCMS friend cmsHPROFILE colorprofile_get_handle( SPDocument*, guint*, gchar const* ); - +#endif // ENABLE_LCMS static GType getType(); static void classInit( ColorProfileClass *klass ); |
