summaryrefslogtreecommitdiff
path: root/testing/unit_test_main.cpp
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2018-06-01 15:19:04 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-01 15:19:04 +0000
commit4f21d77576b371270375f1120cba5cf99c248e9d (patch)
tree2d30a1bbed27764c7c884401ab412343cf45592c /testing/unit_test_main.cpp
parent2d11d72e326140b9abeb6de2db1e28e5bf9d7e64 (diff)
downloadpdfium-4f21d77576b371270375f1120cba5cf99c248e9d.tar.xz
Fix V8 guards
These guards are using #if, when they should be using #ifdef. Caught using Clang's static analyzer. Change-Id: I9bb7a4c2b817e752c04b21a8321595f9676d6381 Reviewed-on: https://pdfium-review.googlesource.com/33511 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'testing/unit_test_main.cpp')
-rw-r--r--testing/unit_test_main.cpp4
1 files changed, 2 insertions, 2 deletions
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"