diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2013-03-18 20:47:29 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2013-03-18 20:47:29 +0100 |
commit | efdea080a27d51b522f2414873e5c112201b71e6 (patch) | |
tree | 1f1d9a12230dd356fd7e2bde17200e8abdf1d3b3 /src/symbols-minimal.cpp | |
parent | 79112159f8f87efb5aa6fc98def89f4cd50545e8 (diff) | |
download | sciteco-efdea080a27d51b522f2414873e5c112201b71e6.tar.gz |
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
Diffstat (limited to 'src/symbols-minimal.cpp')
-rw-r--r-- | src/symbols-minimal.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/symbols-minimal.cpp b/src/symbols-minimal.cpp new file mode 100644 index 0000000..5b1a8ec --- /dev/null +++ b/src/symbols-minimal.cpp @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2012-2013 Robin Haberkorn + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "sciteco.h" +#include "symbols.h" + +namespace Symbols { + SymbolList scintilla; + SymbolList scilexer; +} |