Skip to content

Commit

Permalink
tools: make sure clang is not considered to be visual studio
Browse files Browse the repository at this point in the history
just because it starts with "cl". Spotted by Joerg Sonnenberger.
  • Loading branch information
mitchfoo committed Sep 10, 2013
1 parent 3654619 commit ac808b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/gimptool.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ac808b8

Please sign in to comment.