Skip to content
  • Jeff King's avatar
    parse_color: drop COLOR_BACKGROUND macro · 71b59849
    Jeff King authored and Junio C Hamano's avatar Junio C Hamano committed
    Commit 695d95df (parse_color: refactor color storage,
    2014-11-20) introduced two macros, COLOR_FOREGROUND and
    COLOR_BACKGROUND. The latter conflicts with a system macro
    defined on Windows, breaking compilation there.
    
    The simplest solution is to just get rid of these macros
    entirely. They are constants that are only used in one place
    (since the whole point of 695d95df
    
     was to avoid repeating
    ourselves). Their main function is to make the magic
    character constants more readable, but we can do the same
    thing with a comment.
    
    Reported-by: default avatarJohannes Sixt <j6t@kdbg.org>
    Signed-off-by: default avatarJeff King <peff@peff.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    71b59849