Skip to content

Commit

Permalink
Merge pull request #533 from rest-for-physics/lobis-unistd-header-inc…
Browse files Browse the repository at this point in the history
…lude

Explicitly include unistd.h
  • Loading branch information
lobis authored Jul 18, 2024
2 parents 2ffc29d + 5c481ad commit 84a7760
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 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
4 changes: 0 additions & 4 deletions source/framework/tools/src/TRestStringOutput.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,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 84a7760

Please sign in to comment.