diff --git a/include/tesseract/capi.h b/include/tesseract/capi.h index d6ff279d..fa16697d 100644 --- a/include/tesseract/capi.h +++ b/include/tesseract/capi.h @@ -301,7 +301,7 @@ TESS_API int *TessBaseAPIAllWordConfidences(TessBaseAPI *handle); #ifndef DISABLED_LEGACY_ENGINE TESS_API BOOL TessBaseAPIAdaptToWordStr(TessBaseAPI *handle, TessPageSegMode mode, const char *wordstr); -#endif // ndef DISABLED_LEGACY_ENGINE +#endif // #ifndef DISABLED_LEGACY_ENGINE TESS_API void TessBaseAPIClear(TessBaseAPI *handle); TESS_API void TessBaseAPIEnd(TessBaseAPI *handle); diff --git a/src/api/baseapi.cpp b/src/api/baseapi.cpp index 242e3c00..e3a15153 100644 --- a/src/api/baseapi.cpp +++ b/src/api/baseapi.cpp @@ -2114,7 +2114,7 @@ bool TessBaseAPI::DetectOS(OSResults *osr) { } return orientation_and_script_detection(input_file_.c_str(), osr, tesseract_) > 0; } -#endif // ndef DISABLED_LEGACY_ENGINE +#endif // #ifndef DISABLED_LEGACY_ENGINE void TessBaseAPI::set_min_orientation_margin(double margin) { tesseract_->min_orientation_margin.set_value(margin); @@ -2236,4 +2236,4 @@ std::string HOcrEscape(const char *text) { return ret; } -} // namespace tesseract. +} // namespace tesseract