Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
c13d5878
Commit
c13d5878
authored
Jan 23, 2020
by
Michael Cronenworth
Committed by
Alexandre Julliard
Jan 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sane.ds: Global variable compatibility update for gcc 10.
Signed-off-by:
Michael Cronenworth
<
mike@cchtml.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
453980e1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
sane_i.h
dlls/sane.ds/sane_i.h
+4
-2
sane_main.c
dlls/sane.ds/sane_main.c
+18
-0
No files found.
dlls/sane.ds/sane_i.h
View file @
c13d5878
...
...
@@ -36,7 +36,7 @@
#include "twain.h"
#ifdef SONAME_LIBSANE
#define MAKE_FUNCPTR(f) typeof(f) * p##f DECLSPEC_HIDDEN;
#define MAKE_FUNCPTR(f)
extern
typeof(f) * p##f DECLSPEC_HIDDEN;
MAKE_FUNCPTR
(
sane_init
)
MAKE_FUNCPTR
(
sane_exit
)
MAKE_FUNCPTR
(
sane_get_devices
)
...
...
@@ -84,7 +84,9 @@ struct tagActiveDS
TW_FIX32
defaultXResolution
;
BOOL
YResolutionSet
;
TW_FIX32
defaultYResolution
;
}
activeDS
DECLSPEC_HIDDEN
;
};
extern
struct
tagActiveDS
activeDS
DECLSPEC_HIDDEN
;
/* Helper functions */
extern
TW_UINT16
SANE_SaneCapability
(
pTW_CAPABILITY
pCapability
,
TW_UINT16
action
)
DECLSPEC_HIDDEN
;
...
...
dlls/sane.ds/sane_main.c
View file @
c13d5878
...
...
@@ -30,9 +30,27 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
twain
);
struct
tagActiveDS
activeDS
;
DSMENTRYPROC
SANE_dsmentry
;
#ifdef SONAME_LIBSANE
#define MAKE_FUNCPTR(f) typeof(f) * p##f;
MAKE_FUNCPTR
(
sane_init
)
MAKE_FUNCPTR
(
sane_exit
)
MAKE_FUNCPTR
(
sane_get_devices
)
MAKE_FUNCPTR
(
sane_open
)
MAKE_FUNCPTR
(
sane_close
)
MAKE_FUNCPTR
(
sane_get_option_descriptor
)
MAKE_FUNCPTR
(
sane_control_option
)
MAKE_FUNCPTR
(
sane_get_parameters
)
MAKE_FUNCPTR
(
sane_start
)
MAKE_FUNCPTR
(
sane_read
)
MAKE_FUNCPTR
(
sane_cancel
)
MAKE_FUNCPTR
(
sane_set_io_mode
)
MAKE_FUNCPTR
(
sane_get_select_fd
)
MAKE_FUNCPTR
(
sane_strstatus
)
#undef MAKE_FUNCPTR
HINSTANCE
SANE_instance
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment