From 57c1711837fd2d0e3a0ea5ad16794f8b93555a47 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sat, 25 Feb 2012 20:49:50 +0100 Subject: [PATCH] mark the license text as used so it never gets stripped --- d0.c | 6 +++--- d0.h | 1 + sha2.c | 4 +++- 3 files changed, 7 insertions(+), 4 deletions(-) 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" -- 2.39.2