mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
hg: add a dirent.h portability header
Summary: This will either include system dirent on POSIX or a vendored dirent from folly on Windows. `/no-check-code` is here because it's everywhere across hg's .c codebase. Differential Revision: D7555759 fbshipit-source-id: dc55926e83e17976930522277ed7fe6ce41f32f7
This commit is contained in:
parent
6be12d9dae
commit
171ca13ebe
18
lib/clib/portability/dirent.h
Normal file
18
lib/clib/portability/dirent.h
Normal file
@ -0,0 +1,18 @@
|
||||
// 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_DIRENT_H
|
||||
#define FBHGEXT_CLIB_PORTABILITY_DIRENT_H
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#include "folly/portability/Dirent.h"
|
||||
#else
|
||||
#include <dirent.h>
|
||||
#endif
|
||||
|
||||
#endif /* FBHGEXT_CLIB_PORTABILITY_DIRENT_H */
|
Loading…
Reference in New Issue
Block a user