License to use for including same header file both in GPL and Proprietary application [closed]

StackOverflow https://stackoverflow.com/questions/8500161

  •  15-03-2021
  •  | 
  •  

Domanda

I have a small C header file (i wrote it) which contains only some #define values. I want to #include this header file both in a proprietary application and a GPL application.

I don't mind the header file goes public along with the GPL app. But I can't provide sources of proprietary application to public.

What license should I use for my header file? For example

//
// gplapp.c
#include "/home/project/myheader.h"
int main () {......}

and

//
// proprietaryapp.c
#include "/home/project/myheader.h"
int main () {......}

-

Makefile: build both gplapp.c and proprietaryapp.c
È stato utile?

Soluzione

I'm not sure if I understand your problem fully, however, as long as the code of the header file is yours, you can license it this way and the other time that way. As it's your code, you can license it under any license you want to, which includes multiple licenses in different projects.

If you are the sole author, you're in control, unless you have given away that right.

Altri suggerimenti

Put the GPL in the header. Make it clear that you own the copyright and may license it under other licenses.

Since only the copyright owner has the right to make you comply with the GPL you just have to promise to not sue yourself for using your GPLed code in a proprietary app and not distributing the source.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top