aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/cpp/util/file_windows.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/cpp/util/file_windows.cc')
-rw-r--r--src/main/cpp/util/file_windows.cc22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/main/cpp/util/file_windows.cc b/src/main/cpp/util/file_windows.cc
index 6cab2b491e..cbf17d1c7f 100644
--- a/src/main/cpp/util/file_windows.cc
+++ b/src/main/cpp/util/file_windows.cc
@@ -16,11 +16,33 @@
#include <windows.h>
#include "src/main/cpp/util/errors.h"
+#include "src/main/cpp/util/file.h"
namespace blaze_util {
using std::string;
+class WindowsPipe : public IPipe {
+ public:
+ bool Send(void* buffer, int size) override {
+ // TODO(bazel-team): implement this.
+ pdie(255, "blaze_util::WindowsPipe::Send is not yet implemented");
+ return false;
+ }
+
+ int Receive(void* buffer, int size) override {
+ // TODO(bazel-team): implement this.
+ pdie(255, "blaze_util::WindowsPipe::Receive is not yet implemented");
+ return 0;
+ }
+};
+
+IPipe* CreatePipe() {
+ // TODO(bazel-team): implement this.
+ pdie(255, "blaze_util::CreatePipe is not implemented on Windows");
+ return nullptr;
+}
+
bool ReadFile(const string& filename, string* content, int max_size) {
// TODO(bazel-team): implement this.
pdie(255, "blaze_util::ReadFile is not implemented on Windows");