2017-08-26 02:46:07 +03:00
|
|
|
// 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
|
|
|
|
|
2017-08-26 02:46:07 +03:00
|
|
|
#ifndef FBHGEXT_CLIB_PORTABILITY_UNISTD_H
|
|
|
|
#define FBHGEXT_CLIB_PORTABILITY_UNISTD_H
|
2017-07-18 13:21:28 +03:00
|
|
|
|
|
|
|
#if defined(_MSC_VER)
|
2018-06-06 05:20:17 +03:00
|
|
|
#include <io.h>
|
|
|
|
/* MSVC's io.h header shows deprecation
|
|
|
|
warnings on these without underscore */
|
|
|
|
#define lseek _lseek
|
|
|
|
#define open _open
|
|
|
|
#define close _close
|
2017-07-18 13:21:28 +03:00
|
|
|
#else
|
2018-06-06 05:20:17 +03:00
|
|
|
#include <unistd.h>
|
2017-07-18 13:21:28 +03:00
|
|
|
#endif
|
|
|
|
|
2017-08-26 02:46:07 +03:00
|
|
|
#endif /* FBHGEXT_CLIB_PORTABILITY_UNISTD_H */
|