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:
Durham Goode 2021-02-11 09:44:03 -08:00 committed by Facebook GitHub Bot
parent 5c6edef11c
commit d7a4ce4783

View File

@ -167,7 +167,9 @@ static int to_python_time(const FILETIME* tm) {
static PyObject* make_item(const WIN32_FIND_DATAA* fd, int wantstat) { static PyObject* make_item(const WIN32_FIND_DATAA* fd, int wantstat) {
PyObject* py_st; PyObject* py_st;
struct hg_stat* stp; struct hg_stat* stp;
#ifndef IS_PY3K
const int S_IFLNK = 40960; /* stat.S_IFLINK defined by Python on Windows */ const int S_IFLNK = 40960; /* stat.S_IFLINK defined by Python on Windows */
#endif
int kind = (fd->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) int kind = (fd->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
? ((fd->dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT) ? S_IFLNK ? ((fd->dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT) ? S_IFLNK