Skip to content

Commit b93df51

Browse files
swdeedeadprogram
authored andcommitted
exclude freetype.cpp file from being included in windows build
1 parent 6a6cfaa commit b93df51

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

contrib/freetype.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2+
#ifndef _WIN32 // Exclude compiling on Windows platforms
3+
14
#include "freetype.h"
25

36
FreeType2 FreeType2_CreateFreeType2() {
@@ -28,4 +31,6 @@ Size FreeType2_GetTextSize(FreeType2 f, const char *text,
2831
int fontHeight, int thickness, int *baseLine) {
2932
cv::Size sz = (*f)->getTextSize(text, fontHeight, thickness, baseLine);
3033
return Size{sz.width, sz.height};
31-
}
34+
}
35+
36+
#endif // _WIN32

0 commit comments

Comments
 (0)