diff options
| author | kcbanner <kcbanner@gmail.com> | 2024-10-19 18:15:39 -0400 |
|---|---|---|
| committer | kcbanner <kcbanner@gmail.com> | 2024-10-22 12:41:35 -0400 |
| commit | ee2575724597f214f8f4653f4a4ec1d2a6d97b8b (patch) | |
| tree | 89eeba6c76af7e165937ff8f9ad34a65dfa9d470 /lib/std/builtin.zig | |
| parent | 2d888a8e639856e8cb6e4c6f9e6a27647b464952 (diff) | |
| download | zig-ee2575724597f214f8f4653f4a4ec1d2a6d97b8b.tar.gz zig-ee2575724597f214f8f4653f4a4ec1d2a6d97b8b.zip | |
Add support for specifying `dll_storage_class` in @extern
Diffstat (limited to 'lib/std/builtin.zig')
| -rw-r--r-- | lib/std/builtin.zig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig index 628b736d82..b8a083e5d0 100644 --- a/lib/std/builtin.zig +++ b/lib/std/builtin.zig @@ -70,6 +70,14 @@ pub const GlobalLinkage = enum { /// This data structure is used by the Zig language code generation and /// therefore must be kept in sync with the compiler implementation. +pub const DllStorageClass = enum { + default, + import, + @"export", +}; + +/// This data structure is used by the Zig language code generation and +/// therefore must be kept in sync with the compiler implementation. pub const SymbolVisibility = enum { default, hidden, @@ -683,6 +691,7 @@ pub const ExternOptions = struct { library_name: ?[]const u8 = null, linkage: GlobalLinkage = .strong, is_thread_local: bool = false, + dll_storage_class: DllStorageClass = .default, }; /// This data structure is used by the Zig language code generation and |
