Skip to content

Commit 0213b50

Browse files
committed
Merge pull request opencv#8868 from alalek:fix_build_softfloat
2 parents ea93bcc + 71517a9 commit 0213b50

File tree

5 files changed

+15
-3
lines changed

5 files changed

+15
-3
lines changed

modules/core/include/opencv2/core.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
#include "opencv2/core/types.hpp"
5959
#include "opencv2/core/mat.hpp"
6060
#include "opencv2/core/persistence.hpp"
61-
#include "opencv2/core/softfloat.hpp"
6261

6362
/**
6463
@defgroup core Core functionality

modules/core/include/opencv2/core/softfloat.hpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,18 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
8383

8484
#include "cvdef.h"
8585

86+
// int32_t / uint32_t
87+
#if defined(_MSC_VER) && _MSC_VER < 1600 /* MSVS 2010 */
88+
namespace cv {
89+
typedef signed int int32_t;
90+
typedef unsigned int uint32_t;
91+
}
92+
#elif defined(_MSC_VER) || __cplusplus >= 201103L
93+
#include <cstdint>
94+
#else
95+
#include <stdint.h>
96+
#endif
97+
8698
namespace cv
8799
{
88100

modules/core/src/precomp.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@
5858
#include "opencv2/core/ocl.hpp"
5959
#endif
6060

61-
#include "opencv2/core/softfloat.hpp"
62-
6361
#include <assert.h>
6462
#include <ctype.h>
6563
#include <float.h>

modules/core/src/softfloat.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
7979

8080
#include "precomp.hpp"
8181

82+
#include "opencv2/core/softfloat.hpp"
83+
8284
namespace cv
8385
{
8486

modules/core/test/test_math.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "test_precomp.hpp"
66
#include <float.h>
77
#include <math.h>
8+
#include "opencv2/core/softfloat.hpp"
89

910
using namespace cv;
1011
using namespace std;

0 commit comments

Comments
 (0)