From: Enrico Scholz Date: Thu, 8 Apr 2004 06:03:29 +0000 (+0000) Subject: LINK_WARNING(): added X-Git-Tag: VERSION_0_10~144 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c292d04f7a97ab18df98aa230fc008ae67ec1583;p=util-vserver.git LINK_WARNING(): added git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1437 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/compat.h b/util-vserver/compat.h index 7f9cd9d..a7d7ab7 100644 --- a/util-vserver/compat.h +++ b/util-vserver/compat.h @@ -60,6 +60,10 @@ # define CONST #endif + // shamelessly stolen from dietlibc +#define LINK_WARNING(symbol,msg) \ + __asm__ (".section .gnu.warning." symbol "\n\t.string \"" msg "\"\n\t.previous") + #if !defined(__builtin_expect) && (__GNUC__+0)<3 # define __builtin_expect(foo,bar) (foo) #endif