We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9fc8d2 commit d6d6ef5Copy full SHA for d6d6ef5
Patches/VXL/Patch.cmake
@@ -6,3 +6,8 @@
6
file(COPY ${VXL_PATCH_DIR}/core/vbl/vbl_array_2d.h
7
DESTINATION ${VXL_SOURCE_DIR}/core/vbl/
8
)
9
+
10
+# fixes an issue with duplicate definition of lrintf() on Windows
11
+file(COPY ${VXL_PATCH_DIR}/v3p/openjpeg2/opj_includes.h
12
+ DESTINATION ${VXL_SOURCE_DIR}/v3p/openjpeg2/
13
+)
Patches/VXL/v3p/openjpeg2/opj_includes.h
@@ -100,21 +100,6 @@ static INLINE long lrintf(float f){
100
101
return i;
102
}
103
-#else
104
-static INLINE long lrintf(float x){
105
- long r;
106
- if (x>=0.f)
107
- {
108
- x+=0.5f;
109
- }
110
- else
111
112
- x-=0.5f;
113
114
- r = (long)(x);
115
- if ( x != (float)(r) ) return r;
116
- return 2*(r/2);
117
-}
118
#endif
119
120
0 commit comments