| View previous topic :: View next topic |
| Author |
Message |
DaggyStyle Advocate


Joined: 22 Mar 2006 Posts: 4763
|
Posted: Fri Apr 13, 2012 5:43 am Post subject: redefining var types for header[solved] |
|
|
hello all,
I have a gpl c header which I need to use, thing is, I don't want to change (so I won't break the license) it but I have no need for some of the vars defined in it (for example, spinlock_t) which are causing my compilation to fail.
so I've thought of redefining the types before including the header, question is, how can I do it properly? _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
ProjectFootball
Last edited by DaggyStyle on Fri Apr 27, 2012 6:45 am; edited 1 time in total |
|
| Back to top |
|
 |
dmitchell Veteran


Joined: 17 May 2003 Posts: 1154 Location: Austin, Texas
|
Posted: Fri Apr 27, 2012 4:48 am Post subject: |
|
|
There is no proper way to do what you are asking. The entire undertaking is decidedly improper. With that out of the way, I would like to know more about the problem before making a recommendation. How is this header causing compilation failures? _________________ Your argument is invalid. |
|
| Back to top |
|
 |
DaggyStyle Advocate


Joined: 22 Mar 2006 Posts: 4763
|
Posted: Fri Apr 27, 2012 6:44 am Post subject: |
|
|
| dmitchell wrote: | | There is no proper way to do what you are asking. The entire undertaking is decidedly improper. With that out of the way, I would like to know more about the problem before making a recommendation. How is this header causing compilation failures? |
I've manage to make it work by using typedef for vars and defines for structs. _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
ProjectFootball |
|
| Back to top |
|
 |
|