mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
py3: remove duplicate constant definition
Summary: This is defined else where in Python 3, so let's get rid of it here. Reviewed By: quark-zju Differential Revision: D26381054 fbshipit-source-id: 9746d2c53f83209d9c795ffdd5841d58ef1153ef
This commit is contained in:
parent
5c6edef11c
commit
d7a4ce4783
@ -167,7 +167,9 @@ static int to_python_time(const FILETIME* tm) {
|
||||
static PyObject* make_item(const WIN32_FIND_DATAA* fd, int wantstat) {
|
||||
PyObject* py_st;
|
||||
struct hg_stat* stp;
|
||||
#ifndef IS_PY3K
|
||||
const int S_IFLNK = 40960; /* stat.S_IFLINK defined by Python on Windows */
|
||||
#endif
|
||||
|
||||
int kind = (fd->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
|
||||
? ((fd->dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT) ? S_IFLNK
|
||||
|
Loading…
Reference in New Issue
Block a user