Indent preprocessor directives to make it easier to follow
authorMiguel de Icaza <miguel@gnome.org>
Wed, 20 May 2009 21:07:09 +0000 (21:07 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Wed, 20 May 2009 21:07:09 +0000 (21:07 -0000)
svn path=/trunk/mono/; revision=134475

mono/metadata/threads.c

index f8d827983d7e41f6d145a2b6ef5e5bfbd0b79040..58dd06121de508187aae0564a0e196439ec7385a 100644 (file)
@@ -804,26 +804,26 @@ mono_thread_get_stack_bounds (guint8 **staddr, size_t *stsize)
        guint8 *current = (guint8*)&attr;
 
        pthread_attr_init (&attr);
-#ifdef HAVE_PTHREAD_GETATTR_NP
+#  ifdef HAVE_PTHREAD_GETATTR_NP
        pthread_getattr_np (pthread_self(), &attr);
-#else
-#ifdef HAVE_PTHREAD_ATTR_GET_NP
+#  else
+#    ifdef HAVE_PTHREAD_ATTR_GET_NP
        pthread_attr_get_np (pthread_self(), &attr);
-#elif defined(sun)
+#    elif defined(sun)
        *staddr = NULL;
        pthread_attr_getstacksize (&attr, &stsize);
-#else
+#    else
        *staddr = NULL;
        *stsize = 0;
        return;
-#endif
-#endif
+#    endif
+#  endif
 
-#ifndef sun
+#  ifndef sun
        pthread_attr_getstack (&attr, (void**)staddr, stsize);
        if (*staddr)
                g_assert ((current > *staddr) && (current < *staddr + *stsize));
-#endif
+#  endif
 
        pthread_attr_destroy (&attr); 
 #endif