Last active
February 27, 2016 21:36
-
-
Save wkz/6ea5eda65916c5ead3aa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| stdio.h | |
| -- | |
| #include <stdio.h> | |
| #define printf(_fmt) printf("LOCAL: " _fmt) | |
| inc1.c | |
| -- | |
| #include "stdio.h" | |
| int main(void) | |
| { | |
| printf("test\n"); | |
| return 0; | |
| } | |
| inc2.c | |
| -- | |
| #include <stdio.h> | |
| int main(void) | |
| { | |
| printf("test\n"); | |
| return 0; | |
| } | |
| -- | |
| gcc -o inc inc1.c && ./inc | |
| LOCAL: test | |
| gcc -o inc inc2.c && ./inc | |
| test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment