1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "mojo/embedder/platform_handle.h"
7 #include "build/build_config.h"
13 #error "Platform not yet supported."
16 #include "base/compiler_specific.h"
17 #include "base/logging.h"
22 void PlatformHandle::CloseIfNecessary() {
27 bool success
= (close(fd
) == 0);
31 bool success
= !!CloseHandle(handle
);
33 handle
= INVALID_HANDLE_VALUE
;
35 #error "Platform not yet supported."
39 } // namespace embedder