[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

Re: [XaraXtreme-dev] [patch] Have implemented a Linux port of GetMemoryStatus ("Function to find available RAM")



Alex,

Alex Bligh wrote:
> __WXGTK_, __WXMAC_, and __WXMSW__ are mutually exclusive. __WXGTK__
> is only defined if the others aren't, therefore the !defined(__WXMSW__)
> is redundant. In any case, seems to me stdio is only needed by the GTK
> code (i.e. yours), right?
Indeed; it was necessary since I used the stdio functions in the
GetMemoryStatus code. Well, __WX*__ being all mutually exclusive, then
we only need to add:

#if defined(__WXGTK__)
#  include <stdio.h>
#endif

Israel