Unix Technical Forum

Win32 BYTE_ORDER

This is a discussion on Win32 BYTE_ORDER within the Pgsql Patches forums, part of the PostgreSQL category; --> This patch adds a #define for BYTE_ORDER to win32.h if it's not pulled in elsewhere, as needed by msvc ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Patches

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-18-2008, 09:05 AM
Magnus Hagander
 
Posts: n/a
Default Win32 BYTE_ORDER

This patch adds a #define for BYTE_ORDER to win32.h if it's not pulled
in elsewhere, as needed by msvc build of pgcrypto. Seems several other
platforms define it in their port file already, but not win32.

//Magnus


---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-18-2008, 09:05 AM
Tom Lane
 
Posts: n/a
Default Re: Win32 BYTE_ORDER

"Magnus Hagander" <mha@sollentuna.net> writes:
> This patch adds a #define for BYTE_ORDER to win32.h if it's not pulled
> in elsewhere, as needed by msvc build of pgcrypto. Seems several other
> platforms define it in their port file already, but not win32.


Done, but I think you forgot the defs for LITTLE_ENDIAN and friends
.... it seems unlikely that a platform would provide those and then
forget BYTE_ORDER.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-18-2008, 09:05 AM
Magnus Hagander
 
Posts: n/a
Default Re: Win32 BYTE_ORDER

> > This patch adds a #define for BYTE_ORDER to win32.h if it's
> not pulled
> > in elsewhere, as needed by msvc build of pgcrypto. Seems

> several other
> > platforms define it in their port file already, but not win32.

>
> Done, but I think you forgot the defs for LITTLE_ENDIAN and
> friends ... it seems unlikely that a platform would provide
> those and then forget BYTE_ORDER.


Well, it compiled just fine, so it must've found it somewhere :-)

//Magnus

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-18-2008, 09:05 AM
Tom Lane
 
Posts: n/a
Default Re: Win32 BYTE_ORDER

"Magnus Hagander" <mha@sollentuna.net> writes:
>> Done, but I think you forgot the defs for LITTLE_ENDIAN and
>> friends ... it seems unlikely that a platform would provide
>> those and then forget BYTE_ORDER.


> Well, it compiled just fine, so it must've found it somewhere :-)


I think the #if tests probably reduced to 0 == 0 ... so my bet is
it compiled but didn't work.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:38 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com