On Tue, Mar 20, 2018 at 07:10:42PM +0200, Michael S. Tsirkin wrote: > On Tue, Mar 20, 2018 at 05:33:42PM +0100, Stefan Weil wrote: > > Using <> for system include files and "" for local include files is a > > convention, and as far as I know most projects adhere to that > > convention. So does QEMU currently. Such conventions are not only > > important for humans, but also for tools. There are more tools than the > > C preprocessor which handle <> and "" differently. For example the GNU > > compiler uses -MD or -MMD to automatically generate dependency rules for > > make. While -MD generates dependencies to all include files, -MMD does > > so only for user include files, but not for system include files. "user" > > and "system" means the different forms how include statements are > > written. QEMU still seems to use -MMD: > > > > rules.mak:QEMU_DGFLAGS += -MMD -MP -MT $@ -MF $(@D)/$(*F).d > > To my knowledge, and according to my limited testing, > system headers in this context means > the default ones not supplied with -I.
GCC's definition of system header is here: https://gcc.gnu.org/onlinedocs/cpp/System-Headers.html Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :| _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel