Clean up CPDF_AnnotList.
[pdfium.git] / fpdfsdk / src / fpdf_searchex.cpp
index d63f8ff..9747316 100644 (file)
@@ -5,10 +5,12 @@
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #include "../../public/fpdf_searchex.h"
-#include "../include/fsdk_define.h"
 
-DLLEXPORT int STDCALL  FPDFText_GetCharIndexFromTextIndex(FPDF_TEXTPAGE text_page, int nTextIndex)
-{
-       if(!text_page) return -1;
-       return ((IPDF_TextPage*)text_page)->CharIndexFromTextIndex(nTextIndex);
+#include "../../core/include/fpdftext/fpdf_text.h"
+
+DLLEXPORT int STDCALL
+FPDFText_GetCharIndexFromTextIndex(FPDF_TEXTPAGE text_page, int nTextIndex) {
+  if (!text_page)
+    return -1;
+  return ((IPDF_TextPage*)text_page)->CharIndexFromTextIndex(nTextIndex);
 }