Minor compilation fixes for MacOS X and OS/2.

merge-requests/1/head
Henning Geinitz 2003-04-27 12:29:51 +00:00
rodzic 1b983df1ab
commit c973d82237
4 zmienionych plików z 8 dodań i 1 usunięć

Wyświetl plik

@ -1,3 +1,8 @@
2003-04-27 Henning Meier-Geinitz <henning@meier-geinitz.de>
* backend/hp5400_internal.c backend/canon630u-common.c
backend/epson_scsi.c: Minor compilation fixes for MacOS X and OS/2.
2003-04-26 Henning Meier-Geinitz <henning@meier-geinitz.de>
* README.netbsd: Some additions concerning uscanner driver.

Wyświetl plik

@ -61,6 +61,7 @@
#ifdef HAVE_OS2_H
#include <sys/types.h> /* mode_t */
#endif
#include <sys/stat.h>
#include "lm9830.h"
#define USB_TYPE_VENDOR (0x02 << 5)

Wyświetl plik

@ -21,6 +21,7 @@
#endif
#include <stdio.h>
#include <string.h>
/*
* sense handler for the sanei_scsi_XXX comands

Wyświetl plik

@ -1223,7 +1223,7 @@ InitScan2 (enum ScanType scantype, struct ScanRequest *req,
float pixels = ((float) htons (req->lenx) * (float) htons (req->leny)) *
((float) htons (req->dpix) * (float) htons (req->dpiy)) /
((float) HW_LPI * (float) HW_LPI);
int bpp = rintf ((float) htonl (res.transfersize) / pixels);
int bpp = (int) ((float) htonl (res.transfersize) / pixels + 0.5);
int planes = (bpp == 1) ? 1 : 3;
bpp /= planes;