13 |
|
#include <string.h> |
14 |
|
|
15 |
|
#include "standard.h" |
16 |
+ |
#include "platform.h" |
17 |
|
#include "rtprocess.h" /* Windows: must come before color.h */ |
18 |
|
#include "view.h" |
19 |
|
#include "color.h" |
492 |
|
exit(1); |
493 |
|
} |
494 |
|
if (zfd != -1 && lseek(zfd, |
495 |
< |
(off_t)ylim.min*scanlen(&tresolu)*sizeof(float), 0) < 0) |
495 |
> |
(off_t)ylim.min*scanlen(&tresolu)*sizeof(float), |
496 |
> |
SEEK_SET) < 0) |
497 |
|
syserror(zspec); |
498 |
|
/* load image */ |
499 |
|
for (y = ylim.min; y <= ylim.max; y++) { |
761 |
|
for (y = step - 1; y < numscans(&tresolu); y += step) { |
762 |
|
if (zfd != -1) { |
763 |
|
if (lseek(zfd, (off_t)y*scanlen(&tresolu)*sizeof(float), |
764 |
< |
0) < 0) |
764 |
> |
SEEK_SET) < 0) |
765 |
|
syserror("lseek"); |
766 |
|
if (read(zfd, (char *)zline, |
767 |
|
scanlen(&tresolu)*sizeof(float)) |