Portability Issue in src/backend/port/snprintf.c (I think)

From: Frank Ridderbusch <ridderbusch(dot)pad(at)sni(dot)de>
To: pgsql-hackers(at)postgreSQL(dot)org
Subject: Portability Issue in src/backend/port/snprintf.c (I think)
Date: 1998-10-06 07:41:31
Message-ID: 13849.51627.720000.763380@utensil
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

I compiled Sundays snapshot in preparation of a SVR4/SINIX Readme. A
couple of the problems, which I saw, have already been addressed by
the recent UnixWare patch.

Admittedly my operating system platform is somewhat old, however I
would think, that there are more os versions out there, which don't
have a 'long long' data type.

In particular my compiler didn't like the following line in
src/backend/port/snprintf.c:

/* IRIX doesn't do 'long long' in va_arg(), so use a typedef */
typedef long long long_long;

I'm on a simple 32bit architecture with no long long support, so I
changed 'long long' to 'long' and everything was okay.

Any comments?

MfG/Regards
--
/==== Siemens AG
/ Ridderbusch / , ICP CS XS QM4
/ /./ Heinz Nixdorf Ring
/=== /,== ,===/ /,==, // 33106 Paderborn, Germany
/ // / / // / / \ Tel.: (49) 5251-8-15211
/ / `==/\ / / / \ Email: ridderbusch(dot)pad(at)sni(dot)de

Since I have taken all the Gates out of my computer, it finally works!!

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Hartwig 1998-10-06 15:28:22 Re: [HACKERS] RE: [GENERAL] Long update query ? (also Re: [GENERAL] CNF vs. DNF)
Previous Message Vadim Mikheev 1998-10-06 06:51:27 Re: [HACKERS] select * from ..;vacuum crashes