mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
31bcfbe58e
Summary: They're actively fighting against the clang-format config and don't have an auto-fix. Reviewed By: quark-zju Differential Revision: D8283622 fbshipit-source-id: 2de45f50e6370a5ed14915c6ff23dc843ff14e8a
24 lines
574 B
C
24 lines
574 B
C
// Copyright (c) 2004-present, Facebook, Inc.
|
|
// All Rights Reserved.
|
|
//
|
|
// This software may be used and distributed according to the terms of the
|
|
// GNU General Public License version 2 or any later version.
|
|
|
|
// no-check-code
|
|
|
|
#ifndef FBHGEXT_CLIB_PORTABILITY_UNISTD_H
|
|
#define FBHGEXT_CLIB_PORTABILITY_UNISTD_H
|
|
|
|
#if defined(_MSC_VER)
|
|
#include <io.h>
|
|
/* MSVC's io.h header shows deprecation
|
|
warnings on these without underscore */
|
|
#define lseek _lseek
|
|
#define open _open
|
|
#define close _close
|
|
#else
|
|
#include <unistd.h>
|
|
#endif
|
|
|
|
#endif /* FBHGEXT_CLIB_PORTABILITY_UNISTD_H */
|