summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-08-08 18:44:32 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-08 18:44:32 +0000
commit4b17aea63fede24925cd7579c27f55298e5e9937 (patch)
tree6d6d6fcef1ca51a4817ec20d04d3e87f8431abe4
parent34dab07ed6e826666fd0589069f2c9b5bd2ba4dc (diff)
downloadpdfium-4b17aea63fede24925cd7579c27f55298e5e9937.tar.xz
Remove include of <time.h> from fpdfsdk/cpdfsdk_datetime.h
Prevent stray calls to get time from the system without explicilty including <time.h> in some .cpp file. This helps to be able to control all the places where PDFium obtains time more carefully. Change-Id: I9d52a00b9d4413e18c98f0476fabe7c5f2cd6574 Reviewed-on: https://pdfium-review.googlesource.com/39710 Commit-Queue: Tom Sepez <tsepez@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
-rw-r--r--fpdfsdk/cpdfsdk_datetime.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/fpdfsdk/cpdfsdk_datetime.h b/fpdfsdk/cpdfsdk_datetime.h
index cbd3c36d44..08d8c2bc8a 100644
--- a/fpdfsdk/cpdfsdk_datetime.h
+++ b/fpdfsdk/cpdfsdk_datetime.h
@@ -7,12 +7,6 @@
#ifndef FPDFSDK_CPDFSDK_DATETIME_H_
#define FPDFSDK_CPDFSDK_DATETIME_H_
-#if _FX_OS_ == _FX_OS_ANDROID_
-#include <time.h>
-#else
-#include <ctime>
-#endif
-
#include "fpdfsdk/cfx_systemhandler.h"
class CPDFSDK_DateTime {