Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sys/src/cmd/cpp: add #include_next directive #7

Closed
wants to merge 2,772 commits into from

Conversation

lufia
Copy link

@lufia lufia commented Feb 16, 2019

I added #include_next directive that is GCC extension.
It is sometime used by sources that is developed for Unix, and can't ignore it easily.

I have tested it.

// a.c
#include <u.h>

// compat/u.h
#ifndef U_H
#define U_H
#include "x.h"
#else
#include_next <u.h>
#endif

// x.h
#include_next <u.h>
% cpp -N -Icompat -I/386/include/ape -I/sys/include/ape a.c

0intro added 30 commits July 10, 2018 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants