forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
25
Kha/Backends/Kinc-hxcpp/khacpp/hxcpp/StaticStd.hx
Normal file
25
Kha/Backends/Kinc-hxcpp/khacpp/hxcpp/StaticStd.hx
Normal file
@ -0,0 +1,25 @@
|
||||
package hxcpp;
|
||||
|
||||
#if (hxcpp_api_level>=330)
|
||||
|
||||
class StaticStd { }
|
||||
|
||||
#else
|
||||
|
||||
@:cppFileCode( 'extern "C" int std_register_prims();')
|
||||
@:buildXml("
|
||||
<target id='haxe'>
|
||||
<lib name='${HXCPP}/lib/${BINDIR}/libstd${LIBEXTRA}${LIBEXT}'/>
|
||||
<lib name='ws2_32.lib' if='windows' unless='static_link' />
|
||||
</target>
|
||||
")
|
||||
@:keep class StaticStd
|
||||
{
|
||||
static function __init__()
|
||||
{
|
||||
untyped __cpp__("std_register_prims();");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#end
|
Reference in New Issue
Block a user