Commit 8500738
authored
[libspirv] Avoid macro redefinition (intel#18670)
The macro __CLC_FUNCTION is special and is used in CLC headers. Defining
it here in an implementation file - nextafter.cl - for another purpose
then including half_nextafter.inc which pulls in the SPIR-V headers
results in a macro redefinition, which is warned about.
Sicne the name isn't important and is local to this one file, this
commit just changes the macro definition to fix the issue.1 parent 89f6a39 commit 8500738
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | | - | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
0 commit comments