[runtime] Use TARGET_WIN32 instead of HOST_WIN32 when setting calling conventions...
authorZoltan Varga <vargaz@gmail.com>
Wed, 22 Feb 2017 17:49:10 +0000 (12:49 -0500)
committerGitHub <noreply@github.com>
Wed, 22 Feb 2017 17:49:10 +0000 (12:49 -0500)
mono/metadata/icall.c
mono/metadata/loader.c

index 4b56f40534580723c95cc798dbaf9b8d2e636d49..120d41fb28ff6d5e7e89a60cf1b80dc02a71d993 100644 (file)
@@ -8542,7 +8542,7 @@ mono_create_icall_signature (const char *sigstr)
        res = mono_metadata_signature_alloc (corlib, len - 1);
        res->pinvoke = 1;
 
-#ifdef HOST_WIN32
+#ifdef TARGET_WIN32
        /* 
         * Under windows, the default pinvoke calling convention is STDCALL but
         * we need CDECL.
index 0309ce8404e1593cd2f88e5b84af17ac0a61c4f7..8bd15165bcf5b549044e2e7b394a1e01b7c45c9a 100644 (file)
@@ -2436,7 +2436,7 @@ mono_method_signature_checked (MonoMethod *m, MonoError *error)
        }
        if (m->iflags & METHOD_IMPL_ATTRIBUTE_INTERNAL_CALL) {
                signature->pinvoke = 1;
-#ifdef HOST_WIN32
+#ifdef TARGET_WIN32
                /*
                 * On Windows the default pinvoke calling convention is STDCALL but
                 * we need CDECL since this is actually an icall.