]>
Commit | Line | Data |
---|---|---|
1 | ||
2 | ||
3 | #define SYMBOL_IS_HERE_IN_10_4(sym) \ | |
4 | extern const char sym##_tmp __asm("$ld$add$os10.4$_" #sym ); const char sym##_tmp = 0; | |
5 | ||
6 | #define SYMBOL_IS_HERE_IN_10_5(sym) \ | |
7 | extern const char sym##_tmp __asm("$ld$add$os10.5$_" #sym ); const char sym##_tmp = 0; | |
8 | ||
9 | #define SYMBOL_NOT_HERE_IN_10_4(sym) \ | |
10 | extern const char sym##_tmp __asm("$ld$hide$os10.4$_" #sym ); const char sym##_tmp = 0; | |
11 | ||
12 | #define SYMBOL_NOT_HERE_IN_10_5(sym) \ | |
13 | extern const char sym##_tmp __asm("$ld$hide$os10.5$_" #sym ); const char sym##_tmp = 0; | |
14 | ||
15 | ||
16 | // 10.4 10.5 | |
17 | // aaa libbar libfoo | |
18 | // bbb libfoo libbar | |
19 | // | |
20 | ||
21 | // bbb is new here in 10.5. It was elsewhere in 10.4 | |
22 | SYMBOL_NOT_HERE_IN_10_4(bbb) | |
23 | ||
24 | // aaa was here in 10.4 and move elsewhere | |
25 | SYMBOL_IS_HERE_IN_10_4(aaa) | |
26 |