[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More notes on Mac OS X 10.3.6 (Panther)

From: Ben Pfaff
Subject: Re: More notes on Mac OS X 10.3.6 (Panther)
Date: Tue, 30 Nov 2004 08:51:59 -0800
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

"Marshall DeBerry" <address@hidden> writes:

> flip.c: In function `flip_file':
> flip.c:423: error: `off_t' undeclared (first use in this function)
> flip.c:423: error: (Each undeclared identifier is reported only once
> flip.c:423: error: for each function it appears in.)
> flip.c:423: error: parse error before "i"

I checked in the following:

Tue Nov 30 08:47:41 2004  Ben Pfaff  <address@hidden>

        * flip.c: (flip_file) If fseeko() is not available, use long int
        for off_t.  Thanks to "Marshall DeBerry" <address@hidden> for
        reporting the problem.

Index: flip.c
RCS file: /cvsroot/pspp/pspp/src/flip.c,v
retrieving revision 1.15
diff -u -p -u -p -r1.15 flip.c
--- flip.c      15 Nov 2004 09:51:22 -0000      1.15
+++ flip.c      30 Nov 2004 16:54:24 -0000
@@ -416,6 +416,10 @@ flip_file (struct flip_pgm *flip)
 #ifndef HAVE_FSEEKO
 #define fseeko fseek
+#ifndef off_t
+#define off_t long int
          if (fseeko (output_file,

"Premature optimization is the root of all evil."
--D. E. Knuth, "Structured Programming with go to Statements"

reply via email to

[Prev in Thread] Current Thread [Next in Thread]