Skip to content

Commit 21c587a

Browse files
committed
Changes to compile on Windows with Visual Studio
1 parent 2c2eb11 commit 21c587a

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

common.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,20 @@
77

88
typedef unsigned int uint;
99

10+
#ifdef WIN32
11+
typedef double interval;
12+
typedef double real;
13+
14+
inline interval Sup(interval i)
15+
{
16+
return i;
17+
}
18+
19+
inline interval Inf(interval i)
20+
{
21+
return i;
22+
}
23+
24+
#endif
25+
1026
#endif /* COMMON_H */

int-haar.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@
55

66
#include <iostream>
77
#include <cmath>
8-
#include <interval.hpp>
98
#include "common.h"
109

1110
using namespace std;
11+
12+
#ifndef WIN32
13+
#include <interval.hpp>
1214
using namespace cxsc;
15+
#endif
1316

1417
#define HAAR_COMPRESS_ERROR 0.0000000001
1518

0 commit comments

Comments
 (0)