Add option to disable implicit include directories. Closes #2139.
parent
7f307fd5ef
commit
ef2257bb4e
9 changed files with 44 additions and 5 deletions
@ -0,0 +1,10 @@ |
||||
#include"stdio.h" |
||||
|
||||
#ifndef WRAPPER_INCLUDED |
||||
#error The wrapper stdio.h was not included. |
||||
#endif |
||||
|
||||
int main(int argc, char **argv) { |
||||
printf("Eventually I got printed.\n"); |
||||
return 0; |
||||
} |
@ -0,0 +1,5 @@ |
||||
project('dotinclude', 'c') |
||||
|
||||
executable('dotproc', 'dotproc.c', |
||||
implicit_include_directories : false) |
||||
|
@ -0,0 +1,6 @@ |
||||
// There is no #pragma once because we _want_ to cause an eternal loop
|
||||
// if this wrapper invokes itself.
|
||||
|
||||
#define WRAPPER_INCLUDED |
||||
|
||||
#include<stdio.h> |
Loading…
Reference in new issue