2018-10-09 01:24:39 +08:00
|
|
|
// This file is included in the compilation unit when exporting a DLL on windows.
|
2017-10-16 13:14:28 +08:00
|
|
|
|
|
|
|
const std = @import("std");
|
2018-04-30 03:51:23 +08:00
|
|
|
const builtin = @import("builtin");
|
2017-10-16 13:14:28 +08:00
|
|
|
|
2017-12-18 22:59:57 +08:00
|
|
|
comptime {
|
2018-04-30 03:50:56 +08:00
|
|
|
@export("_DllMainCRTStartup", _DllMainCRTStartup, builtin.GlobalLinkage.Strong);
|
2017-12-18 22:59:57 +08:00
|
|
|
}
|
|
|
|
|
2018-05-29 08:23:55 +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-16 13:14:28 +08:00
|
|
|
return std.os.windows.TRUE;
|
|
|
|
}
|