Skip to content

Commit

Permalink
explicitly include unistd.h
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis committed Jul 18, 2024
1 parent 2ffc29d commit bb23853
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 12 deletions.
4 changes: 4 additions & 0 deletions source/framework/core/inc/TRestMetadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
#include "TRestVersion.h"
#include "tinyxml.h"

#ifndef WIN32
#include <unistd.h>
#endif

/* We keep using REST_RELEASE, REST_VERSION(2,X,Y) and REST_VERSION_CODE
to determine the installed REST version and avoid too much prototyping
Expand Down
3 changes: 0 additions & 3 deletions source/framework/core/src/TRestGDMLParser.cxx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#include "TRestGDMLParser.h"

#include <filesystem>
#ifdef __APPLE__
#include <unistd.h>
#endif

using namespace std;

Expand Down
4 changes: 0 additions & 4 deletions source/framework/core/src/startup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
#include <Windows.h>
#endif // WIN32

#ifdef __APPLE__
#include <unistd.h>
#endif

#include "RVersion.h"
#include "TEnv.h"
#include "TRestDataBase.h"
Expand Down
4 changes: 4 additions & 0 deletions source/framework/tools/inc/TRestTools.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
#define EXTERN_IMP
#endif

#ifndef WIN32
#include <unistd.h>
#endif

const std::string PARAMETER_NOT_FOUND_STR = "NO_SUCH_PARA";
const double PARAMETER_NOT_FOUND_DBL = -99999999;

Expand Down
5 changes: 0 additions & 5 deletions source/framework/tools/src/TRestStringOutput.cxx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "TRestStringOutput.h"

#include "TRestStringHelper.h"

using namespace std;
Expand All @@ -9,10 +8,6 @@ using namespace std;
#include <conio.h>
#endif // WIN32

#ifdef __APPLE__
#include <unistd.h>
#endif

int Console::GetWidth() {
#ifdef WIN32
CONSOLE_SCREEN_BUFFER_INFO csbi;
Expand Down

0 comments on commit bb23853

Please sign in to comment.