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

Open
wants to merge 1 commit into
base: master
from

Conversation

@lufia
Copy link

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

@lufia lufia referenced this pull request Mar 24, 2019

Open

add funcs and types to APE #6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.