From 5183cbd78f43f97e4e3d1cb5ad36a07fdcee51e0 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 9 Apr 2020 23:53:06 -0700 Subject: Minor tweak to support compiling with TCC --- bb.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bb.h') diff --git a/bb.h b/bb.h index 2b99f88..23682b8 100644 --- a/bb.h +++ b/bb.h @@ -245,4 +245,10 @@ static const struct termios default_termios = { static const char *description_str = "bb - an itty bitty console TUI file browser\n"; static const char *usage_str = "Usage: bb (-h/--help | -v/--version | -s | -d | -0 | +command)* [[--] directory]\n"; +// Hack to get TinyCC (TCC) compilation to work: +// https://lists.nongnu.org/archive/html/tinycc-devel/2018-07/msg00000.html +#ifdef __TINYC__ +void * __dso_handle __attribute((visibility("hidden"))) = &__dso_handle; +#endif + // vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1 -- cgit v1.2.3