delete repeat definitions
This commit is contained in:
parent
21be8eb172
commit
382a1154d0
|
@ -11,8 +11,6 @@
|
|||
#ifdef __linux__
|
||||
typedef CSSIZE Size;
|
||||
typedef CSSIZE SIZE;
|
||||
typedef unsigned long DWORD;
|
||||
typedef long LONG;
|
||||
#endif
|
||||
|
||||
typedef struct Paper_Status {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#pragma once
|
||||
#pragma once
|
||||
|
||||
// hg_scanner_cfg is the base configuration definitions
|
||||
//
|
||||
|
@ -28,8 +28,6 @@ typedef CSSIZE* PCSSIZEL, * LPCSSIZEL;
|
|||
#else
|
||||
typedef CSSIZE Size;
|
||||
typedef CSSIZE SIZE;
|
||||
typedef unsigned long DWORD;
|
||||
typedef long LONG;
|
||||
#endif
|
||||
|
||||
enum hg_scanner_type
|
||||
|
|
|
@ -4,36 +4,9 @@
|
|||
#include <string.h>
|
||||
#if !defined(WIN32) && !defined(_WIN64)
|
||||
#include <unistd.h>
|
||||
#pragma pack(push)
|
||||
#pragma pack(1)
|
||||
typedef struct BITMAPFILEHEADER
|
||||
{
|
||||
u_int16_t bfType;
|
||||
u_int32_t bfSize;
|
||||
u_int16_t bfReserved1;
|
||||
u_int16_t bfReserved2;
|
||||
u_int32_t bfOffBits;
|
||||
}BITMAPFILEHEADER;
|
||||
|
||||
typedef struct BITMAPINFOHEADER
|
||||
{
|
||||
u_int32_t biSize;
|
||||
u_int32_t biWidth;
|
||||
u_int32_t biHeight;
|
||||
u_int16_t biPlanes;
|
||||
u_int16_t biBitCount;
|
||||
u_int32_t biCompression;
|
||||
u_int32_t biSizeImage;
|
||||
u_int32_t biXPelsPerMeter;
|
||||
u_int32_t biYPelsPerMeter;
|
||||
u_int32_t biClrUsed;
|
||||
u_int32_t biClrImportant;
|
||||
}BITMAPINFODEADER;
|
||||
#pragma pack(pop)
|
||||
#define BI_RGB 0
|
||||
#define MAKEWORD(a, b) (((a) & 0x0ff) | (((b) & 0x0ff) << 8))
|
||||
#define MAKELONG(a, b) (((a) & 0x0ffff) | (((b) & 0x0ffff) << 16))
|
||||
#define _countof(a) (sizeof(a) / sizeof((a)[0]))
|
||||
#else
|
||||
#include <Windows.h>
|
||||
#include <shlobj.h>
|
||||
|
|
Loading…
Reference in New Issue