[gimp] tools: make sure clang is not considered to be visual studio



commit ac808b8b6b25596f28b81f9a30738d2cb31ce4a4
Author: Michael Natterer <mitch gimp org>
Date:   Tue Sep 10 12:06:55 2013 +0200

    tools: make sure clang is not considered to be visual studio
    
    just because it starts with "cl". Spotted by Joerg Sonnenberger.

 tools/gimptool.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/tools/gimptool.c b/tools/gimptool.c
index f75545a..b8ba02d 100644
--- a/tools/gimptool.c
+++ b/tools/gimptool.c
@@ -263,7 +263,8 @@ find_out_env_flags (void)
   else
     env_cc = CC;
 
-  if (g_ascii_strncasecmp (env_cc, "cl", 2) == 0)
+  if (g_ascii_strncasecmp (env_cc, "cl", 2)    == 0 &&
+      g_ascii_strncasecmp (env_cc, "clang", 5) != 0)
     msvc_syntax = TRUE;
 
   if ((p = getenv ("CFLAGS")) != NULL)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]