Skip to content

Instantly share code, notes, and snippets.

@wkz
Last active February 27, 2016 21:36
Show Gist options
  • Select an option

  • Save wkz/6ea5eda65916c5ead3aa to your computer and use it in GitHub Desktop.

Select an option

Save wkz/6ea5eda65916c5ead3aa to your computer and use it in GitHub Desktop.
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