From 72ac4c4a464b3aec21cdbe367c9d465cbe0f3ff1 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Thu, 10 Nov 2011 09:55:07 -0800 Subject: Drop support for pre-ANSI-C89 preprocessors Signed-off-by: Alan Coopersmith --- src/Atoms.c | 6 ------ src/sharedlib.c | 6 ------ 2 files changed, 12 deletions(-) (limited to 'src') diff --git a/src/Atoms.c b/src/Atoms.c index 412f399..6cc91a2 100644 --- a/src/Atoms.c +++ b/src/Atoms.c @@ -60,15 +60,9 @@ struct _AtomRec { #define STATIC static #endif -#if !defined(UNIXCPP) || defined(ANSICPP) #define DeclareAtom(atom,text) \ STATIC struct _AtomRec __##atom = { text, NULL }; \ AtomPtr _##atom = &__##atom; -#else -#define DeclareAtom(atom,text) \ -STATIC struct _AtomRec __/**/atom = { text, NULL }; \ -AtomPtr _/**/atom = &__/**/atom; -#endif DeclareAtom(XA_ATOM_PAIR, "ATOM_PAIR" ) DeclareAtom(XA_CHARACTER_POSITION, "CHARACTER_POSITION" ) diff --git a/src/sharedlib.c b/src/sharedlib.c index 4bb8c3b..b47213d 100644 --- a/src/sharedlib.c +++ b/src/sharedlib.c @@ -36,15 +36,9 @@ struct _AtomRec { struct _DisplayRec* head; }; -#if !defined(UNIXCPP) || defined(ANSICPP) #define DeclareAtom(atom) \ extern struct _AtomRec __##atom; \ AtomPtr _##atom = &__##atom; -#else -#define DeclareAtom(atom) \ -extern struct _AtomRec __/**/atom; \ -AtomPtr _/**/atom = &__/**/atom; -#endif DeclareAtom(XA_ATOM_PAIR) DeclareAtom(XA_CHARACTER_POSITION) -- cgit v1.2.1