seadog (owner)

Revisions

  • 4d4572 seadog Sun Jul 05 12:10:43 -0700 2009
gist: 141084 Download_button fork
public
Public Clone URL: git://gist.github.com/141084.git
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
test.c:
 
#include <stdio.h>
#include "test.h"
 
void __attribute__((weak)) test(void){
  printf("Hi\n");
}
 
int main(void){
  if(test)
    test();
  return 0;
}
 
test2.c:
 
#include "test.h"
#include <stdio.h>
 
void test(void){
  printf("Hi2\n");
}
 
test.h:
 
#ifndef __TEST_H__
#define __TEST_H__
 
void test(void);
 
#endif