Skip to content

Commit

Permalink
try to add compatibility with too-old gnustep versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Mayer committed Dec 2, 2012
1 parent bccc741 commit ae727c6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion CoreEngine/Scene.mm
Expand Up @@ -99,7 +99,14 @@ - (id)init
if (cd)
{
NSColor *value = [NSUnarchiver unarchiveObjectWithData:cd];
CGFloat c[4];
#if defined(GNUSTEP_BASE_MAJOR_VERSION) && defined(GNUSTEP_BASE_MINOR_VERSION) && \
( GNUSTEP_BASE_MAJOR_VERSION < 1 || \
(GNUSTEP_BASE_MAJOR_VERSION == 1 && \
GNUSTEP_BASE_MINOR_VERSION < 24))
float c[4];
#else
CGFloat c[4];
#endif
[value getComponents:c];
globalSettings.outlineColor = vector4f(c[0], c[1], c[2], 1.0);
}
Expand Down

0 comments on commit ae727c6

Please sign in to comment.