From efdea080a27d51b522f2414873e5c112201b71e6 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 18 Mar 2013 20:47:29 +0100 Subject: declare all global inter-dependant objects in main.cpp and get rid of init_priority attribute * we cannot use weak symbols in MinGW, so we avoid init_priority for symbol initialization by compiling the empty definitions into sciteco-minimal but the real ones into sciteco (had to add new file symbols-minimal.cpp) * this fixes compilation/linking on LLVM Clang AND Dragonegg since their init_priority attribute is broken! this will likely be fixed in the near future but broken versions will be around for some time --- src/sciteco.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/sciteco.h') diff --git a/src/sciteco.h b/src/sciteco.h index b7f92fd..84c9775 100644 --- a/src/sciteco.h +++ b/src/sciteco.h @@ -52,10 +52,6 @@ extern sig_atomic_t sigint_occurred; */ #define NIL ((void *)0) -#define INIT_PRIO(X) __attribute__((init_priority(X))) -#define PRIO_INTERFACE 1000 -#define PRIO_SYMBOLS 1000 - #define IS_CTL(C) ((C) < ' ') #define CTL_ECHO(C) ((C) | 0x40) #define CTL_KEY(C) ((C) & ~0x40) -- cgit v1.2.3