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
25f70e69
Commit
25f70e69
authored
Jun 21, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed warnigs from zlib defines
parent
3af92a9d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
4 deletions
+20
-4
persistence.cpp
modules/core/src/persistence.cpp
+8
-1
precomp.hpp
modules/core/src/precomp.hpp
+3
-3
grfmt_png.cpp
modules/highgui/src/grfmt_png.cpp
+9
-0
No files found.
modules/core/src/persistence.cpp
View file @
25f70e69
...
...
@@ -59,7 +59,14 @@ typedef void* gzFile;
#endif
#if USE_ZLIB
#include <zlib.h>
# undef HAVE_UNISTD_H //to avoid redefinition
# ifndef _LFS64_LARGEFILE
# define _LFS64_LARGEFILE 0
# endif
# ifndef _FILE_OFFSET_BITS
# define _FILE_OFFSET_BITS 0
# endif
# include <zlib.h>
#endif
/****************************************************************************************\
...
...
modules/core/src/precomp.hpp
View file @
25f70e69
...
...
@@ -43,7 +43,7 @@
#ifndef __OPENCV_PRECOMP_H__
#define __OPENCV_PRECOMP_H__
#ifdef HAVE_CVCONFIG_H
#ifdef HAVE_CVCONFIG_H
#include "cvconfig.h"
#endif
...
...
@@ -196,9 +196,9 @@ inline bool checkScalar(const Mat& sc, int atype, int sckind, int akind)
return
sc
.
size
()
==
Size
(
1
,
1
)
||
sc
.
size
()
==
Size
(
1
,
cn
)
||
sc
.
size
()
==
Size
(
cn
,
1
)
||
(
sc
.
size
()
==
Size
(
1
,
4
)
&&
sc
.
type
()
==
CV_64F
&&
cn
<=
4
);
}
void
convertAndUnrollScalar
(
const
Mat
&
sc
,
int
buftype
,
uchar
*
scbuf
,
size_t
blocksize
);
}
#endif
/*_CXCORE_INTERNAL_H_*/
modules/highgui/src/grfmt_png.cpp
View file @
25f70e69
...
...
@@ -51,12 +51,21 @@
and png2bmp sample from libpng distribution (Copyright (C) 1999-2001 MIYASAKA Masaru)
\****************************************************************************************/
#undef HAVE_UNISTD_H //to avoid redefinition
#ifndef _LFS64_LARGEFILE
# define _LFS64_LARGEFILE 0
#endif
#ifndef _FILE_OFFSET_BITS
# define _FILE_OFFSET_BITS 0
#endif
#ifdef HAVE_LIBPNG_PNG_H
#include <libpng/png.h>
#else
#include <png.h>
#endif
#include <zlib.h>
#include "grfmt_png.hpp"
#if defined _MSC_VER && _MSC_VER >= 1200
...
...
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