Skip to content
Browse files

try to add compatibility with too-old gnustep versions

  • Loading branch information...
1 parent bccc741 commit ae727c697ea915136b119c32ea9dfea6ec2eb3c2 @core-code committed
Showing with 8 additions and 1 deletion.
  1. +8 −1 CoreEngine/Scene.mm
View
9 CoreEngine/Scene.mm
@@ -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);
}

0 comments on commit ae727c6

Please sign in to comment.
Something went wrong with that request. Please try again.