[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")


The include is necessary since the code is using stdio functions. Of
course, to be consistent with the changes you made, it should instead be
something like:

#if !defined(__WXMSW__) && defined(__WXGTK__)
#  include <stdio.h>

__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?