OLD | NEW |
1 #include <stdio.h> | 1 #include <stdio.h> |
2 | 2 |
3 #include "inc.h" | 3 #include "inc.h" |
4 #include "include1.h" | 4 #include "include1.h" |
5 #include "include2.h" | 5 #include "include2.h" |
6 #include "shadow.h" | 6 #include "shadow.h" |
7 | 7 |
8 int main(int argc, char *argv[]) | 8 int main(void) |
9 { | 9 { |
10 printf("Hello from includes.c\n"); | 10 printf("Hello from includes.c\n"); |
11 printf("Hello from %s\n", INC_STRING); | 11 printf("Hello from %s\n", INC_STRING); |
12 printf("Hello from %s\n", INCLUDE1_STRING); | 12 printf("Hello from %s\n", INCLUDE1_STRING); |
13 printf("Hello from %s\n", INCLUDE2_STRING); | 13 printf("Hello from %s\n", INCLUDE2_STRING); |
14 /* Test that include_dirs happen first: The gyp file has a -Ishadow1 | 14 /* Test that include_dirs happen first: The gyp file has a -Ishadow1 |
15 cflag and an include_dir of shadow2. Including shadow.h should get | 15 cflag and an include_dir of shadow2. Including shadow.h should get |
16 the shadow.h from the include_dir. */ | 16 the shadow.h from the include_dir. */ |
17 printf("Hello from %s\n", SHADOW_STRING); | 17 printf("Hello from %s\n", SHADOW_STRING); |
18 return 0; | 18 return 0; |
19 } | 19 } |
OLD | NEW |