--- a/contrib/check-code.py Wed Mar 23 23:33:14 2011 +0100
+++ b/contrib/check-code.py Wed Mar 23 23:05:32 2011 +0100
@@ -180,6 +180,7 @@
(r'^[^#]\w[+/*]\w', "missing whitespace in expression"),
(r'^#\s+\w', "use #foo, not # foo"),
(r'[^\n]\Z', "no trailing newline"),
+ (r'^\s*#import\b', "use only #include in standard C code"),
]
cfilters = [
--- a/mercurial/osutil.c Wed Mar 23 23:33:14 2011 +0100
+++ b/mercurial/osutil.c Wed Mar 23 23:05:32 2011 +0100
@@ -515,7 +515,7 @@
#endif
#ifdef __APPLE__
-#import <ApplicationServices/ApplicationServices.h>
+#include <ApplicationServices/ApplicationServices.h>
static PyObject *isgui(PyObject *self)
{