Skip to content

Commit

Permalink
/usr/bin/python on 10.14 problem with InputMethodKit bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldoussoren committed Dec 6, 2018
1 parent 64e7f4f commit 31ad991
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pyobjc-framework-InputMethodKit/Modules/_InputMethodKit.m
Expand Up @@ -2,6 +2,18 @@
#include <Python.h>
#include "pyobjc-api.h"

#if PyObjC_BUILD_RELEASE >= 1014
/* The SDK included with Xcode 10 no longer includes a number
* of header files, but does #incldue them in <oCarbon/Carbon.h>.
*
* The defines below avoid trying to import these, which is
* safe because we don't use any of the definitions from these files.
*/
#define __CARBONSOUND__
#define __NAVIGATIONSERVICES__
#endif


#import <InputMethodKit/InputMethodKit.h>

/* We include the source code here instead of
Expand Down

0 comments on commit 31ad991

Please sign in to comment.