Unix Technical Forum

BUG #2665: VC++ 8 (Visual Studio 2005)

This is a discussion on BUG #2665: VC++ 8 (Visual Studio 2005) within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 2665 Logged by: Oliver Artelt Email address: oli@cubeoffice.de PostgreSQL version: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 11:15 AM
Oliver Artelt
 
Posts: n/a
Default BUG #2665: VC++ 8 (Visual Studio 2005)


The following bug has been logged online:

Bug reference: 2665
Logged by: Oliver Artelt
Email address: oli@cubeoffice.de
PostgreSQL version: 8.2 beta 1
Operating system: WinXP + SP2
Description: VC++ 8 (Visual Studio 2005)
Details:

.... the libpq doesn't compile because the compiler does not know the keyword
inline - after removing it works :-(

so long...

---------------------------(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
  #2 (permalink)  
Old 04-10-2008, 11:16 AM
Bruce Momjian
 
Posts: n/a
Default Re: BUG #2665: VC++ 8 (Visual Studio 2005)

Oliver Artelt wrote:
>
> The following bug has been logged online:
>
> Bug reference: 2665
> Logged by: Oliver Artelt
> Email address: oli@cubeoffice.de
> PostgreSQL version: 8.2 beta 1
> Operating system: WinXP + SP2
> Description: VC++ 8 (Visual Studio 2005)
> Details:
>
> ... the libpq doesn't compile because the compiler does not know the keyword
> inline - after removing it works :-(


Interesting. We have inline redefined in src/include/port/win32.h. Can
you find out why you are not getting those redefined?

--
Bruce Momjian bruce@momjian.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

---------------------------(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
  #3 (permalink)  
Old 04-10-2008, 11:16 AM
Tom Lane
 
Posts: n/a
Default Re: BUG #2665: VC++ 8 (Visual Studio 2005)

Bruce Momjian <bruce@momjian.us> writes:
> Interesting. We have inline redefined in src/include/port/win32.h. Can
> you find out why you are not getting those redefined?


AFAICS, all the "#ifdef WIN32_ONLY_COMPILER" code in win32.h is dead
code, because c.h doesn't #define WIN32_ONLY_COMPILER until *after* it's
included pg_config_os.h. It would appear that most of it is indeed
useless and should be removed.

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
  #4 (permalink)  
Old 04-10-2008, 11:16 AM
Bruce Momjian
 
Posts: n/a
Default Re: BUG #2665: VC++ 8 (Visual Studio 2005)

Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > Interesting. We have inline redefined in src/include/port/win32.h. Can
> > you find out why you are not getting those redefined?

>
> AFAICS, all the "#ifdef WIN32_ONLY_COMPILER" code in win32.h is dead
> code, because c.h doesn't #define WIN32_ONLY_COMPILER until *after* it's
> included pg_config_os.h. It would appear that most of it is indeed
> useless and should be removed.


Uh, I think we still do have reasons to test if we are using MSVC or
Borland C. I think the #define should just be moved up in c.h.

--
Bruce Momjian bruce@momjian.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

---------------------------(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
  #5 (permalink)  
Old 04-10-2008, 11:16 AM
Tom Lane
 
Posts: n/a
Default Re: BUG #2665: VC++ 8 (Visual Studio 2005)

Bruce Momjian <bruce@momjian.us> writes:
> Uh, I think we still do have reasons to test if we are using MSVC or
> Borland C. I think the #define should just be moved up in c.h.


Current evidence says otherwise --- but if you insist, why not put the
define in win32.h in the first place, instead of cluttering c.h with it?

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
  #6 (permalink)  
Old 04-10-2008, 11:16 AM
Bruce Momjian
 
Posts: n/a
Default Re: BUG #2665: VC++ 8 (Visual Studio 2005)

Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > Uh, I think we still do have reasons to test if we are using MSVC or
> > Borland C. I think the #define should just be moved up in c.h.

>
> Current evidence says otherwise --- but if you insist, why not put the
> define in win32.h in the first place, instead of cluttering c.h with it?


Well, we certainly need the define for the __inline macro, because was
reported as the bug.

I moved the define to win32.h as you suggested, attached, applied.

--
Bruce Momjian bruce@momjian.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +


---------------------------(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
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 04:07 AM.


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