From: Rudolf Polzer Date: Sat, 25 Feb 2012 19:49:50 +0000 (+0100) Subject: mark the license text as used so it never gets stripped X-Git-Tag: xonotic-v0.6.0^0 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=57c1711837fd2d0e3a0ea5ad16794f8b93555a47;p=xonotic%2Fd0_blind_id.git mark the license text as used so it never gets stripped --- diff --git a/d0.c b/d0.c index 17934f0..c8920b4 100644 --- a/d0.c +++ b/d0.c @@ -1,9 +1,11 @@ +#include "d0.h" + /* * include the license notice into the dynamic library to "reproduce the * copyright notice" automatically, so the application developer does not have * to care about this term */ -const char *d0_bsd_license_notice = "\n" +const char *d0_bsd_license_notice D0_USED = "\n" "/*\n" " * FILE: d0.c\n" " * AUTHOR: Rudolf Polzer - divVerent@xonotic.org\n" @@ -39,8 +41,6 @@ const char *d0_bsd_license_notice = "\n" " * $Id$\n" " */\n"; -#include "d0.h" - #include //#define MUTEX_DEBUG diff --git a/d0.h b/d0.h index 0f9b419..6c55afe 100644 --- a/d0.h +++ b/d0.h @@ -39,6 +39,7 @@ #include // size_t #define D0_EXPORT __attribute__((__visibility__("default"))) +#define D0_USED __attribute__((used)) #define D0_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) #define D0_BOOL int diff --git a/sha2.c b/sha2.c index e88b47d..1ca0f81 100644 --- a/sha2.c +++ b/sha2.c @@ -1,9 +1,11 @@ +#include "d0.h" + /* * include the license notice into the dynamic library to "reproduce the * copyright notice" automatically, so the application developer does not have * to care about this term */ -const char *d0_sha2_c_bsd_license_notice = "\n" +const char *d0_sha2_c_bsd_license_notice D0_USED = "\n" "/*\n" " * FILE: sha2.c\n" " * AUTHOR: Aaron D. Gifford - http://www.aarongifford.com/\n"