Add Sun cc to thread-local support checks in pixman-compiler.h
authorAlan Coopersmith <alan.coopersmith@sun.com>
Mon, 15 Mar 2010 22:20:05 +0000 (15:20 -0700)
committerAlan Coopersmith <alan.coopersmith@sun.com>
Mon, 15 Mar 2010 22:20:23 +0000 (15:20 -0700)
Clears '#warning: "unknown compiler"' messages when building

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
pixman/pixman-compiler.h

index caafd0f..5aeef86 100644 (file)
@@ -70,7 +70,7 @@
 #endif
 
 /* TLS */
-#if defined (__GNUC__) && ((__GNUC__ == 3 && __GNUC_MINOR >= 3) || __GNUC__ > 3)
+#if (defined (__GNUC__) && ((__GNUC__ == 3 && __GNUC_MINOR >= 3) || __GNUC__ > 3)) || defined(__SUNPRO_C)
 #    define THREAD_LOCAL __thread
 #elif defined (_MSC_VER)
 #    define THREAD_LOCAL __declspec(thread)