Fix __attribute__ changes.
authorJunio C Hamano <junkio@cox.net>
Fri, 19 Aug 2005 09:06:52 +0000 (02:06 -0700)
committerJunio C Hamano <junkio@cox.net>
Fri, 19 Aug 2005 09:06:52 +0000 (02:06 -0700)
It cannot be checked with #ifndef, if you really think about what it
does which cannot be done only with the preprocessor.  My thinko.

Signed-off-by: Junio C Hamano <junkio@cox.net>
cache.h

diff --git a/cache.h b/cache.h
index 9964667..ba5c4ab 100644 (file)
--- a/cache.h
+++ b/cache.h
 #define NORETURN __attribute__((__noreturn__))
 #else
 #define NORETURN
-#endif
-
 #ifndef __attribute__
 #define __attribute__(x)
 #endif
+#endif
 
 /*
  * Intensive research over the course of many years has shown that