[Rd] usage of #import in grDevices/src/qdCocoa.h

Michael Chirico m|ch@e|ch|r|co4 @end|ng |rom gm@||@com
Mon Oct 19 06:01:24 CEST 2020

I happened to notice that this header file uses

#import <Cocoa/Cocoa.h>

This is the first time I came across the preprocessor directive #import;
the first thing I found about it is this Q&A suggesting it's not portable
nor standard C:


On the other hand, this exact invocation seems pretty common on GitHub


I don't see much in the way of relevant documentation for Cocoa besides
stuff like this page from 2001:


Is this something that should be updated to use #include? Other packages
appear to have done so, e.g. from GitHub:


Michael Chirico

	[[alternative HTML version deleted]]

More information about the R-devel mailing list