nickgammon / BigNumber

BigNumber library for the Arduino
MIT License
87 stars 22 forks source link

What is the license for this library? #8

Closed kbyamy closed 5 years ago

kbyamy commented 5 years ago

Hi.

This Library is Although MIT license seems to be applied, the GNU GPL license is listed in gpl.txt.

When I use this library, which license should I consider?

nickgammon commented 5 years ago

That raises an interesting point. I used the number.c and number.h files as per the embedded comments:

this file is originally from GNU bc-1.06
...
    Copyright (C) 1991, 1992, 1993, 1994, 1997, 2000 Free Software Foundation, Inc.

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License , or
    (at your option) any later version.

However I usually license my code under the MIT license. Having said that, in BigNumber.cpp I have the following line:

 Released into the public domain.

I don't think I can downgrade the GPL in the appropriate files, so you can consider that the files which were from the "bc" program (number.c, number.h and bcconfig.h) to be under the GPL, and the remaining files (which were my work) to either be public domain or under the MIT license.

kbyamy commented 5 years ago

Thanks, I understand. I will be close this issue.