mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
Fixes bug handling chained && ||. Work towards more macro functionality. Correctly emit stdcall. Corrected character parsing in escaped string entries.
This commit is contained in:
@@ -211,8 +211,7 @@ void gencontext_emit_function_decl(GenContext *context, Decl *decl)
|
||||
}
|
||||
gencontext_add_attribute(context, function, nounwind_attribute, -1);
|
||||
|
||||
// TODO only for windows.
|
||||
if (decl->func.attr_stdcall)
|
||||
if (decl->func.attr_stdcall && (build_target.os == OS_TYPE_WIN32))
|
||||
{
|
||||
LLVMSetFunctionCallConv(function, LLVMX86StdcallCallConv);
|
||||
LLVMSetDLLStorageClass(function, LLVMDLLImportStorageClass);
|
||||
|
||||
Reference in New Issue
Block a user