[postgis-devel] tgl at sss.pgh.pa.us on "Determining Endianess "

strk strk at keybit.net
Tue Feb 10 12:02:48 PST 2004


----- Forwarded message from Tom Lane <tgl at sss.pgh.pa.us> -----

From: Tom Lane <tgl at sss.pgh.pa.us>
To: strk <strk at keybit.net>
Cc: pgsql-hackers at postgresql.org
Subject: Re: [HACKERS] BYTE_ORDER for contribs 
Date: Mon, 09 Feb 2004 20:21:04 -0500
Message-ID: <21012.1076376064 at sss.pgh.pa.us>

strk <strk at keybit.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

----- End forwarded message -----



More information about the postgis-devel mailing list