Remove unused defines.

This commit is contained in:
Egor Pugin 2016-07-03 23:34:14 +03:00
parent f1c2e6eaa9
commit 553c069608
2 changed files with 26 additions and 36 deletions

View File

@ -159,33 +159,33 @@ string(SUBSTRING ${VERSION_MINOR} 0 1 VERSION_MINOR_0)
string(SUBSTRING ${VERSION_MINOR} 1 1 VERSION_MINOR_1) string(SUBSTRING ${VERSION_MINOR} 1 1 VERSION_MINOR_1)
file(GLOB tesseract_src file(GLOB tesseract_src
"ccmain/*.cpp" ccmain/*.cpp
"ccstruct/*.cpp" ccstruct/*.cpp
"ccutil/*.cpp" ccutil/*.cpp
"classify/*.cpp" classify/*.cpp
"cube/*.cpp" cube/*.cpp
"cutil/*.cpp" cutil/*.cpp
"dict/*.cpp" dict/*.cpp
"neural_networks/runtime/*.cpp" neural_networks/runtime/*.cpp
"opencl/*.cpp" opencl/*.cpp
"textord/*.cpp" textord/*.cpp
"viewer/*.cpp" viewer/*.cpp
"wordrec/*.cpp" wordrec/*.cpp
) )
file(GLOB tesseract_hdr file(GLOB tesseract_hdr
"api/*.h" api/*.h
"ccmain/*.h" ccmain/*.h
"ccstruct/*.h" ccstruct/*.h
"ccutil/*.h" ccutil/*.h
"classify/*.h" classify/*.h
"cube/*.h" cube/*.h
"cutil/*.h" cutil/*.h
"dict/*.h" dict/*.h
"neural_networks/runtime/*.h" neural_networks/runtime/*.h
"opencl/*.h" opencl/*.h
"textord/*.h" textord/*.h
"viewer/*.h" viewer/*.h
"wordrec/*.h" wordrec/*.h
) )
if (WIN32) if (WIN32)
file(GLOB tesseract_win32_src "vs2010/port/*.cpp") file(GLOB tesseract_win32_src "vs2010/port/*.cpp")

View File

@ -88,7 +88,7 @@ set(include_files_list
sys/wait.h sys/wait.h
tiffio.h tiffio.h
unistd.h unistd.h
cairo/cairo-version.h cairo/cairo-version.h
CL/cl.h CL/cl.h
OpenCL/cl.h OpenCL/cl.h
@ -112,22 +112,12 @@ set(types_list
) )
check_types(types_list) check_types(types_list)
check_c_source_compiles("#include <sys/time.h>\n#include <time.h>\nmain(){}" TIME_WITH_SYS_TIME)
test_big_endian(WORDS_BIGENDIAN) test_big_endian(WORDS_BIGENDIAN)
set(STDC_HEADERS 1)
file(APPEND ${AUTOCONFIG_SRC} " file(APPEND ${AUTOCONFIG_SRC} "
/* Define to 1 if you have the ANSI C header files. */
#cmakedefine STDC_HEADERS 1
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */ significant byte first (like Motorola and SPARC, unlike Intel). */
#cmakedefine WORDS_BIGENDIAN 1 #cmakedefine WORDS_BIGENDIAN 1
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
#cmakedefine TIME_WITH_SYS_TIME 1
") ")
######################################## ########################################