On Fri, Jan 8, 2010 at 07:53, Bruce Momjian <[email protected]> wrote:
> Alex Hunsaker wrote:
>> On Thu, Jan 7, 2010 at 20:26, Tom Lane <[email protected]> wrote:
>> > Alex Hunsaker <[email protected]> writes:
> The usual solution for this kind of thing is:
>
> #ifdef LINUX
> #define OOM_ADJUST oom_adjust()
> #else
> #define OOM_ADJUST do {} while (0)
> #endif
>
> so there is no call or dummy function and you reference it in the code
> as:
Surely any compiler worth its salt would turn a call to an empty void
function into a noop? Then again maybe I just hate macros :)
--
Sent via pgsql-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers