Skip to content

Commit

Permalink
fix VS2010 build
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenop committed Aug 15, 2014
1 parent 369fabb commit 689c8e5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@
*.opensdf
*.lastbuildstate
*.unsuccessfulbuild
*.suo
*.res
*.ipch
*.manifest
vs2010/DLL_Debug/*
vs2010/DLL_Release/*
vs2010/LIB_Debug/*
vs2010/LIB_Release/*
vs2010/LIB_OpenCL_Release/*
vs2010/LIB_OpenCL_Debug/*



# Linux
# ignore local configuration
Expand Down
7 changes: 2 additions & 5 deletions opencl/openclwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
#ifdef USE_OPENCL

#include "opencl_device_selection.h"
#ifdef _MSC_VER
int LeptMsgSeverity = 3; // L_SEVERITY_INFO
#endif // _MSC_VER
GPUEnv OpenclDevice::gpuEnv;

#if USE_DEVICE_SELECTION
Expand Down Expand Up @@ -716,8 +713,8 @@ int OpenclDevice::GeneratBinFromKernelSource( cl_program program, const char * c
{
free(binaries[cleanupIndex]);
}
// cleanup binary array
free(binaries);
// cleanup binary array
free(binaries);

return 0;
}
Expand Down
6 changes: 3 additions & 3 deletions vs2010/include/leptonica_versionnumbers.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<PropertyGroup Label="UserMacros">
<GIFLIB_VERSION>416</GIFLIB_VERSION>
<LIBJPEG_VERSION>8c</LIBJPEG_VERSION>
<LIBLEPT_VERSION>170</LIBLEPT_VERSION>
<LIBLEPT_VERSION_R>1,70,0,0</LIBLEPT_VERSION_R>
<LIBLEPT_NUMBER>1.70</LIBLEPT_NUMBER>
<LIBLEPT_VERSION>171</LIBLEPT_VERSION>
<LIBLEPT_VERSION_R>1,71,0,0</LIBLEPT_VERSION_R>
<LIBLEPT_NUMBER>1.71</LIBLEPT_NUMBER>
<LIBPNG_VERSION>143</LIBPNG_VERSION>
<LIBTIFF_VERSION>394</LIBTIFF_VERSION>
<ZLIB_VERSION>125</ZLIB_VERSION>
Expand Down

0 comments on commit 689c8e5

Please sign in to comment.