Rewrote usages of define(_MSC_VER) to ifdef _MSC_VER

This commit is contained in:
Tomer Lev 2022-11-01 19:52:22 +02:00
parent 5cdc6e150e
commit a105ea9d80
6 changed files with 17 additions and 19 deletions

View file

@ -2,7 +2,7 @@
#pragma once
#if ! defined(_MSC_VER)
#ifndef _MSC_VER
#include "Pipe.h"
#endif
@ -25,7 +25,7 @@ public:
* Fire()'d and not yet Extinguished()'d.
*/
int FD() const
#if ! defined(_MSC_VER)
#ifndef _MSC_VER
{
return pipe.ReadFD();
}
@ -52,7 +52,7 @@ public:
int Extinguish(bool signal_safe = false);
private:
#if ! defined(_MSC_VER)
#ifndef _MSC_VER
Pipe pipe;
#else
int sendfd, recvfd;