  bool RenderPDFPageToDC(const void* pdf_buffer,
                                   int buffer_size,
                                   int page_number,
-@@ -115,6 +121,7 @@ bool RenderPDFPageToDC(const void* pdf_buffer,
+@@ -137,6 +142,7 @@ bool RenderPDFPageToDC(const void* pdf_buffer,
  
  #endif  // OS_WIN
  

       ],
       'ldflags': [ '-L<(PRODUCT_DIR)',],
diff --git a/pdf/pdf.h b/pdf/pdf.h
index 37e72e5..6a31fc6 100644
--- a/pdf/pdf.h
+++ b/pdf/pdf.h
@@ -8,6 +8,13 @@
 #include "ppapi/c/ppb.h"
 #include "ppapi/cpp/module.h"
 

diff --git a/pdf/pdf.cc b/pdf/pdf.cc
index 1f580e4..939b54d 100644
--- a/pdf/pdf.cc
+++ b/pdf/pdf.cc
@@ -100,7 +100,12 @@ const void* PPP_GetInterface(const char* interface_name) {
   return pp::Module::Get()->GetPluginInterface(interface_name);
 }
 
+}  // namespace chrome_pdf
+
+extern "C" {
+
