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