[runtime] Fixed TLS detection on AMD64 to support cross-compilation.
authorJoão Matos <joao@tritao.eu>
Fri, 13 Feb 2015 16:45:33 +0000 (16:45 +0000)
committerJoão Matos <joao@tritao.eu>
Fri, 13 Feb 2015 16:45:46 +0000 (16:45 +0000)
mono/mini/mini-amd64.c

index 431a60422419f225d5b50574cf2eeba9f61af2d7..29336f277da3c7fd455f5e49254d90e3dfcccb7a 100755 (executable)
@@ -3549,7 +3549,7 @@ static int tls_gs_offset;
 gboolean
 mono_amd64_have_tls_get (void)
 {
-#ifdef __APPLE__
+#ifdef TARGET_MACH
        static gboolean have_tls_get = FALSE;
        static gboolean inited = FALSE;
        guint8 *ins;
@@ -3580,7 +3580,7 @@ mono_amd64_have_tls_get (void)
        tls_gs_offset = ins[5];
 
        return have_tls_get;
-#elif defined(PLATFORM_ANDROID)
+#elif defined(TARGET_ANDROID)
        return FALSE;
 #else
        return TRUE;