![]() |
Macro redefinition |
Post Reply ![]() |
Author | |
johnmichael ![]() Groupie ![]() Joined: 30 June 2009 Location: United Kingdom Status: Offline Points: 18 |
![]() ![]() ![]() ![]() ![]() Posted: 27 August 2009 at 6:15am |
SAFE_DELETE and SAFE_RELEASE macros are defined by XTPMacros.h
unfortunatly these are very commonly used macro names and just about every api has them. fortunatly almost every other api wraps them in: #if !defined SAFE_DELETE #define SAFE_DELETE(x) ... #endif meaning you dont get these redefinition error. Although you may have specific implementations for the macro's bodies so maybe you should rename them: XT_SAFE_DELETE XT_SAFE_RELEASE to avoid future conflicts while still maintaining the ability to customise the macro body. regards |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Him
just add
#undef SAFE_DELETE
before you include toolkit.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
johnmichael ![]() Groupie ![]() Joined: 30 June 2009 Location: United Kingdom Status: Offline Points: 18 |
![]() ![]() ![]() ![]() ![]() |
yes I did this but its a hack not a solution. I think the real problem needs to be addressed with the toolkit.
<code> #if !defined SAFE_DELETE #endif </code> wrappers... |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Thanks, we will add it.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
I'd say the same goes for that other define you have :P (DirectShow I suppose).
|
|
PokerMemento - http://www.pokermemento.com/
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |