test.h #define TESTVAL 3 extern int max(int, int); test.c #include "./test.h" int max(int a, int b) { return ((a>b)? a:b); }