Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
redefining var types for header[solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
DaggyStyle
Advocate
Advocate


Joined: 22 Mar 2006
Posts: 4763

PostPosted: Fri Apr 13, 2012 5:43 am    Post subject: redefining var types for header[solved] Reply with quote

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
View user's profile Send private message
dmitchell
Veteran
Veteran


Joined: 17 May 2003
Posts: 1154
Location: Austin, Texas

PostPosted: Fri Apr 27, 2012 4:48 am    Post subject: Reply with quote

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
View user's profile Send private message
DaggyStyle
Advocate
Advocate


Joined: 22 Mar 2006
Posts: 4763

PostPosted: Fri Apr 27, 2012 6:44 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum