zig/std/special/bootstrap_lib.zig

15 lines
447 B
Zig
Raw Normal View History

2017-10-15 22:14:28 -07:00
// This file is included in the compilation unit when exporting a library on windows.
const std = @import("std");
2018-04-29 12:51:23 -07:00
const builtin = @import("builtin");
2017-10-15 22:14:28 -07:00
2017-12-18 06:59:57 -08:00
comptime {
2018-04-29 12:50:56 -07:00
@export("_DllMainCRTStartup", _DllMainCRTStartup, builtin.GlobalLinkage.Strong);
2017-12-18 06:59:57 -08:00
}
stdcallcc fn _DllMainCRTStartup(hinstDLL: std.os.windows.HINSTANCE, fdwReason: std.os.windows.DWORD,
lpReserved: std.os.windows.LPVOID) std.os.windows.BOOL
2017-10-15 22:14:28 -07:00
{
return std.os.windows.TRUE;
}