1 | #include "dylib.h" |
---|---|
2 | |
3 | int present_weak_int = 10; |
4 | int present_weak_function() |
5 | { |
6 | return present_weak_int; |
7 | } |
8 | |
9 | #if defined HAS_THEM |
10 | int absent_weak_int = 10; |
11 | int absent_weak_function() { |
12 | return absent_weak_int; |
13 | } |
14 | #endif |
15 |
1 | #include "dylib.h" |
---|---|
2 | |
3 | int present_weak_int = 10; |
4 | int present_weak_function() |
5 | { |
6 | return present_weak_int; |
7 | } |
8 | |
9 | #if defined HAS_THEM |
10 | int absent_weak_int = 10; |
11 | int absent_weak_function() { |
12 | return absent_weak_int; |
13 | } |
14 | #endif |
15 |