##// END OF EJS Templates
osutil: replace #import with #include, and add a check for it
Dan Villiom Podlaski Christiansen -
r13748:26f8844d default
parent child Browse files
Show More
@@ -180,6 +180,7 b' cpats = ['
180 (r'^[^#]\w[+/*]\w', "missing whitespace in expression"),
180 (r'^[^#]\w[+/*]\w', "missing whitespace in expression"),
181 (r'^#\s+\w', "use #foo, not # foo"),
181 (r'^#\s+\w', "use #foo, not # foo"),
182 (r'[^\n]\Z', "no trailing newline"),
182 (r'[^\n]\Z', "no trailing newline"),
183 (r'^\s*#import\b', "use only #include in standard C code"),
183 ]
184 ]
184
185
185 cfilters = [
186 cfilters = [
@@ -515,7 +515,7 b' bail:'
515 #endif
515 #endif
516
516
517 #ifdef __APPLE__
517 #ifdef __APPLE__
518 #import <ApplicationServices/ApplicationServices.h>
518 #include <ApplicationServices/ApplicationServices.h>
519
519
520 static PyObject *isgui(PyObject *self)
520 static PyObject *isgui(PyObject *self)
521 {
521 {
General Comments 0
You need to be logged in to leave comments. Login now