Re: BYTE_ORDER for contribs

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: strk <strk(at)keybit(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: BYTE_ORDER for contribs
Date: 2004-02-10 01:21:04
Message-ID: 21012.1076376064@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

strk <strk(at)keybit(dot)net> writes:
> Is there a quick way to use the BYTE_ORDER define
> as set by pgsql ? I can't find an "entry point"
> include for it.

BYTE_ORDER isn't actually used anywhere in the backend, and hasn't been
for a long time, so I wouldn't count on it to be right.

> It's needed for postgis (problems with Solaris BYTE_ORDER).

My recommendation is to rethink your code. There's usually a way to
avoid having a compile-time dependency.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-02-10 01:24:56 Re: CVS HEAD compile failure on Freebsd 4.9
Previous Message Jenny Zhang 2004-02-10 01:10:25 Re: Proposed Query Planner TODO items