URI:
       tdevdraw: fix build on macOS < 10.12 - plan9port - [fork] Plan 9 from user space
  HTML git clone git://src.adamsgaard.dk/plan9port
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 680c57a15c51c302d89aec134e25f08820d3f30d
   DIR parent c665ab76a83dbe4a56410d3f65e02716cd773a6d
  HTML Author: Rudá Moura <ruda.moura@gmail.com>
       Date:   Sun, 26 Mar 2017 05:09:00 +0000
       
       devdraw: fix build on macOS < 10.12
       
       After making the build on macOS silent on commit 310ae03,
       tthe build was broken on macOS lesser than 10.12 (Sierra).
       
       This commit conditionally checks the version the of the
       SDK before using the defined values for silent build.
       
       Fixes #66.
       
       Diffstat:
         M src/cmd/devdraw/cocoa-screen.m      |       2 ++
       
       1 file changed, 2 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/src/cmd/devdraw/cocoa-screen.m b/src/cmd/devdraw/cocoa-screen.m
       t@@ -29,6 +29,7 @@
        #include "glendapng.h"
        
        // Use non-deprecated names.
       +#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101200
        #define NSKeyDown NSEventTypeKeyDown
        #define NSShiftKeyMask NSEventModifierFlagShift
        #define NSAlternateKeyMask NSEventModifierFlagOption
       t@@ -52,6 +53,7 @@
        #define NSClosableWindowMask NSWindowStyleMaskClosable
        #define NSMiniaturizableWindowMask NSWindowStyleMaskMiniaturizable
        #define NSBorderlessWindowMask NSWindowStyleMaskBorderless
       +#endif
        
        AUTOFRAMEWORK(Cocoa)