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
8ffcc760
Commit
8ffcc760
authored
Feb 16, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10883 from alalek:portable_stdint
parents
e268fdc0
c020a7bb
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
45 additions
and
24 deletions
+45
-24
rho.cpp
modules/calib3d/src/rho.cpp
+0
-1
rho.h
modules/calib3d/src/rho.h
+0
-1
cvdef.h
modules/core/include/opencv2/core/cvdef.h
+44
-0
softfloat.hpp
modules/core/include/opencv2/core/softfloat.hpp
+0
-12
persistence.hpp
modules/core/src/persistence.hpp
+0
-4
precomp.hpp
modules/dnn/src/precomp.hpp
+0
-1
exif.cpp
modules/imgcodecs/src/exif.cpp
+1
-2
exif.hpp
modules/imgcodecs/src/exif.hpp
+0
-1
drawing.cpp
modules/imgproc/src/drawing.cpp
+0
-2
No files found.
modules/calib3d/src/rho.cpp
View file @
8ffcc760
...
...
@@ -48,7 +48,6 @@
#include <opencv2/core.hpp>
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <stddef.h>
#include <limits.h>
...
...
modules/calib3d/src/rho.h
View file @
8ffcc760
...
...
@@ -51,7 +51,6 @@
/* Includes */
#include <opencv2/core.hpp>
#include <stdint.h>
...
...
modules/core/include/opencv2/core/cvdef.h
View file @
8ffcc760
...
...
@@ -452,6 +452,50 @@ Cv64suf;
# endif
#endif
// Integer types portatibility
#ifdef OPENCV_STDINT_HEADER
#include OPENCV_STDINT_HEADER
#else
#if defined(_MSC_VER) && _MSC_VER < 1600
/* MSVS 2010 */
namespace
cv
{
typedef
signed
char
int8_t
;
typedef
unsigned
char
uint8_t
;
typedef
signed
short
int16_t
;
typedef
unsigned
short
uint16_t
;
typedef
signed
int
int32_t
;
typedef
unsigned
int
uint32_t
;
typedef
signed
__int64
int64_t
;
typedef
unsigned
__int64
uint64_t
;
}
#elif defined(_MSC_VER) || __cplusplus >= 201103L
#include <cstdint>
namespace
cv
{
using
std
::
int8_t
;
using
std
::
uint8_t
;
using
std
::
int16_t
;
using
std
::
uint16_t
;
using
std
::
int32_t
;
using
std
::
uint32_t
;
using
std
::
int64_t
;
using
std
::
uint64_t
;
}
#else
#include <stdint.h>
namespace
cv
{
typedef
::
int8_t
int8_t
;
typedef
::
uint8_t
uint8_t
;
typedef
::
int16_t
int16_t
;
typedef
::
uint16_t
uint16_t
;
typedef
::
int32_t
int32_t
;
typedef
::
uint32_t
uint32_t
;
typedef
::
int64_t
int64_t
;
typedef
::
uint64_t
uint64_t
;
}
#endif
#endif
//! @}
#endif // OPENCV_CORE_CVDEF_H
modules/core/include/opencv2/core/softfloat.hpp
View file @
8ffcc760
...
...
@@ -45,18 +45,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "cvdef.h"
// int32_t / uint32_t
#if defined(_MSC_VER) && _MSC_VER < 1600
/* MSVS 2010 */
namespace
cv
{
typedef
signed
int
int32_t
;
typedef
unsigned
int
uint32_t
;
}
#elif defined(_MSC_VER) || __cplusplus >= 201103L
#include <cstdint>
#else
#include <stdint.h>
#endif
namespace
cv
{
...
...
modules/core/src/persistence.hpp
View file @
8ffcc760
...
...
@@ -8,13 +8,9 @@
#include "opencv2/core/types_c.h"
#include <deque>
#include <deque>
#include <sstream>
#include <string>
#include <iterator>
#ifdef _MSC_VER
#include <cstdint>
#endif // _MSC_VER
#define USE_ZLIB 1
#if USE_ZLIB
...
...
modules/dnn/src/precomp.hpp
View file @
8ffcc760
...
...
@@ -43,7 +43,6 @@
#include <opencv2/core/ocl.hpp>
#include <opencv2/core/opencl/ocl_defs.hpp>
#include <opencv2/core/utils/trace.hpp>
#include <opencv2/core/softfloat.hpp> // int32_t (MSVS 2010-2013)
#include "cvconfig.h"
#include <opencv2/dnn.hpp>
#include <opencv2/dnn/all_layers.hpp>
...
...
modules/imgcodecs/src/exif.cpp
View file @
8ffcc760
...
...
@@ -40,9 +40,8 @@
//
//M*/
#include "precomp.hpp"
#include "exif.hpp"
#include "opencv2/core/cvdef.h"
#include "opencv2/core/base.hpp"
namespace
{
...
...
modules/imgcodecs/src/exif.hpp
View file @
8ffcc760
...
...
@@ -48,7 +48,6 @@
#include <map>
#include <utility>
#include <algorithm>
#include <stdint.h>
#include <string>
#include <vector>
#include <iostream>
...
...
modules/imgproc/src/drawing.cpp
View file @
8ffcc760
...
...
@@ -40,8 +40,6 @@
//M*/
#include "precomp.hpp"
#include <stdint.h>
namespace
cv
{
...
...
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