[mythtv] [mythtv-commits] mythtv commit: r21156 - in trunk/mythtv by cpinkham

Johnny Stenback mythtv-dev at jstenback.com
Sat Aug 8 14:42:01 UTC 2009


Jonathan Martens wrote:
> On 8-8-2009 16:02, Stuart Morgan wrote:
>> On Saturday 08 Aug 2009 14:34:54 Jonathan Martens wrote:
>>> While thinking a little about it I remembered that I have seen the
>>> suffix A mostly when a function is also a function in the windows C++
>>> library, this is the case for the DeleteFile function
>>> (http://msdn.microsoft.com/en-us/library/aa363915%28VS.85%29.aspx)
>>>
>>> After renaming all occurrences from DeleteFile to DelFile compile
>>> succeeds, without any modifications what so ever, not even the patch
>>> provided in an earlier message in this thread... strange.
>>
>> Undefining DeleteFile in this scope before our new definition should work
>> instead of renaming.
>
> I would gladly try and test it, but do not know the syntax. Do you? If
> so please enlighten me so I can test and submit a patch.

Try:

#ifdef DeleteFile
#undef DeleteFile
#endif

and do that *after* #including the Microsoft headers that pollute the 
global namespace with its #defines...

> Thanks in advance!
>
> Jonathan
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>


More information about the mythtv-dev mailing list