Макрос S_ISREG не определен

Вопросы

Are the posix macros S_ISREG, S_ISDIR etc linux only? I need to find out because i am trying to compile CURL and it is trying to use them on windows What include file can i use to access them on windows.

Это оскорбительный код

/*we ignore file size for char/block devices, sockets etc*/
if(S_ISREG(fileinfo.st_mode))
   uploadfilesize= fileinfo.st_size;
}

и это вызывает ошибку

error LNK2019: unresolved external symbol _S_ISREG referenced in function _operate file tool_operate.obj

Они упоминаются в следующих вопросах

How to use S_ISREG() and S_ISDIR() POSIX Macros? Differentiate between a unix directory and file in C and C++ Problem reading directories in C

Очевидно, S_ISREG () является частью набора макросов posix и, по-видимому, должен сообщать нам, является ли файл "обычным файлом". но у всех примеров, которые я нашел, были специфичные для Linux подключаемые файлы.

Ответы на вопрос(3)

Ваш ответ на вопрос