Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mark the license text as used so it never gets stripped
  • Loading branch information
Rudolf Polzer committed Feb 25, 2012
1 parent 4d3c9de commit 57c1711
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions 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"
Expand Down Expand Up @@ -39,8 +41,6 @@ const char *d0_bsd_license_notice = "\n"
" * $Id$\n"
" */\n";

#include "d0.h"

#include <stdlib.h>

//#define MUTEX_DEBUG
Expand Down
1 change: 1 addition & 0 deletions d0.h
Expand Up @@ -39,6 +39,7 @@
#include <unistd.h> // 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

Expand Down
4 changes: 3 additions & 1 deletion 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"
Expand Down

0 comments on commit 57c1711

Please sign in to comment.