2018-10-08 10:24:39 -07:00
|
|
|
// This file is included in the compilation unit when exporting a DLL on windows.
|
2017-10-15 22:14:28 -07:00
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2018-05-28 17:23:55 -07: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;
|
|
|
|
}
|