Commit a9bce71
Restore SEASTAR_MODULE for module interface file
Headers included in the module purview need explicit 'export' keywords to be
exported. Without SEASTAR_MODULE defined, SEASTAR_MODULE_EXPORT macros expand
to nothing, and declarations are not exported from the module.
The fix:
- Define SEASTAR_MODULE only for seastar.cppm (module interface file)
- This makes SEASTAR_MODULE_EXPORT expand to "export" in the module interface
- Implementation .cc files don't get SEASTAR_MODULE, so no "export" in regular code
This is the correct approach: export keywords are needed and valid only in the
module interface file, not in implementation files.
Co-authored-by: avikivity <[email protected]>1 parent 1716691 commit a9bce71
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
102 | 106 | | |
103 | 107 | | |
104 | 108 | | |
| |||
0 commit comments