summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--samples/pdfium_test.cc2
-rw-r--r--testing/unit_test_main.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc
index e2e386f3c1..d2e84872d6 100644
--- a/samples/pdfium_test.cc
+++ b/samples/pdfium_test.cc
@@ -283,7 +283,7 @@ bool ParseCommandLine(const std::vector<std::string>& args,
options->save_attachments = true;
} else if (cur_arg == "--save-images") {
options->save_images = true;
-#if PDF_ENABLE_V8
+#ifdef PDF_ENABLE_V8
} else if (cur_arg == "--disable-javascript") {
options->disable_javascript = true;
#ifdef PDF_ENABLE_XFA
diff --git a/testing/unit_test_main.cpp b/testing/unit_test_main.cpp
index 8d8755e617..92dceefdb6 100644
--- a/testing/unit_test_main.cpp
+++ b/testing/unit_test_main.cpp
@@ -10,10 +10,10 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/test_support.h"
-#if PDF_ENABLE_V8
+#ifdef PDF_ENABLE_V8
#include "v8/include/v8-platform.h"
#include "v8/include/v8.h"
-#endif
+#endif // PDF_ENABLE_V8
#if PDF_ENABLE_XFA
#include "core/fxge/cfx_fontmgr.h"