Permalink
Browse files

Define Cocoa animation constants

Allow compilation on pre-10.7 systems
  • Loading branch information...
1 parent 8ce4d03 commit a0b6febaaad31853608b48381179b4cf1b254c13 @davidswelt committed Jan 10, 2014
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/nsterm.h
View
@@ -182,6 +182,15 @@ typedef float EmacsCGFloat;
@end
+#if MAC_OS_X_VERSION_MAX_ALLOWED < 1070
+enum {
+ NSWindowAnimationBehaviorDefault = 0,
+ NSWindowAnimationBehaviorNone = 2,
+ NSWindowAnimationBehaviorDocumentWindow = 3,
+ NSWindowAnimationBehaviorUtilityWindow = 4,
+ NSWindowAnimationBehaviorAlertPanel = 5
+};
+#endif
/* Small utility used for processing resize events under Cocoa. */
@interface EmacsWindow : NSWindow

0 comments on commit a0b6feb

Please sign in to comment.