Remove OSS_RN Specialization in unistd.h Stub (#3921)

* Remove OSS_RN Specialization in unistd.h Stub

We're going to remove the OSS_RN preprocessor definition. In the world
of building against facebook/react-native we will always need this stub
for now. Remove the OSS_RN check, along with a comment which isn't
accurate. (We build multiple files including unistd.h still).

* Change files
This commit is contained in:
Nick Gerleman 2020-01-21 19:11:51 -08:00 коммит произвёл GitHub
Родитель 84b5418eed
Коммит 5c692f84ab
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 9 добавлений и 5 удалений

Просмотреть файл

@ -0,0 +1,9 @@
{
"type": "prerelease",
"comment": "Remove OSS_RN Specialization in unistd.h Stub",
"packageName": "react-native-windows",
"email": "nick@nickgerleman.com",
"commit": "e77ad6640e5c76b31acc508fa8ed2a6c75640085",
"dependentChangeType": "patch",
"date": "2020-01-21T19:30:55.735Z"
}

Просмотреть файл

@ -1,6 +1 @@
// react-native includes unistd.h, which isn't available in windows.
// This shouldn't be needed after
// https://github.com/facebook/react-native/pull/25107 is merged
#if !defined(OSS_RN)
#error This stub should not be used unless building against the non-microsoft version of react-native
#endif