Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
66e4ace3
Commit
66e4ace3
authored
Nov 02, 2018
by
Jean Carass
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaced strcpy_s, strcat_s for MinGW builds.
parent
687fa6a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
window_w32.cpp
modules/highgui/src/window_w32.cpp
+13
-0
No files found.
modules/highgui/src/window_w32.cpp
View file @
66e4ace3
...
...
@@ -99,6 +99,19 @@ static const char* trackbar_text =
#define WM_MOUSEHWHEEL 0x020E
#endif
#if defined(__MINGW32__) || defined(__MINGW64__)
static
inline
void
mingw_strcpy_s
(
char
*
dest
,
size_t
destsz
,
const
char
*
src
){
strcpy
(
dest
,
src
);
}
static
inline
void
mingw_strcat_s
(
char
*
dest
,
size_t
destsz
,
const
char
*
src
){
strcat
(
dest
,
src
);
}
#define strcpy_s mingw_strcpy_s
#define strcat_s mingw_strcat_s
#endif
static
void
FillBitmapInfo
(
BITMAPINFO
*
bmi
,
int
width
,
int
height
,
int
bpp
,
int
origin
)
{
assert
(
bmi
&&
width
>=
0
&&
height
>=
0
&&
(
bpp
==
8
||
bpp
==
24
||
bpp
==
32
));
...
...
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