Ticket #39046: patch-clang.diff

File patch-clang.diff, 418 bytes (added by Ionic (Mihai Moldovan), 11 years ago)

Don't use the workaround when compiling with clang.

  • Src/zsh_system.h

    old new  
    773773# define IS_DIRSEP(c) ((c) == '/')
    774774#endif
    775775
    776 #if defined(__GNUC__) && !defined(__APPLE__)
     776#if defined(__GNUC__) && (!defined(__APPLE__) || defined(__clang__))
    777777/* Does the OS X port of gcc still gag on __attribute__? */
    778778#define UNUSED(x) x __attribute__((__unused__))
    779779#else