From 6eef7a34e7a2a7e8c9b47e0d7d8f4ed48fffbd46 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Sat, 20 Oct 2001 03:38:41 +0000 Subject: [PATCH] * global.h: Define __attribute__ to an empty string for non-gcc compilers so that it's safe to use. --- src/ChangeLog | 5 +++++ src/global.h | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 70012b1f1..cca209b29 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2001-10-19 Pavel Roskin + + * global.h: Define __attribute__ to an empty string for non-gcc + compilers so that it's safe to use. + 2001-10-18 Pavel Roskin * view.c (init_growing_view): Revert last change, it was wrong. diff --git a/src/global.h b/src/global.h index 4e7f226ce..70f4825c0 100644 --- a/src/global.h +++ b/src/global.h @@ -53,6 +53,10 @@ #include +#ifndef __GNUC__ +#define __attribute__() +#endif + #include "fs.h" #include "mem.h" #include "util.h"