Skip to content

Commit

Permalink
Removed platform #ifdefs!
Browse files Browse the repository at this point in the history
  • Loading branch information
aassif committed Jun 12, 2019
1 parent 7c53002 commit 15854fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Freebox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,11 +272,11 @@ bool Freebox::StartSession ()
string file = m_path + "app_token.txt";
if (! XBMC->FileExists (file.c_str (), false))
{
#ifdef _WIN32
#define HOST_NAME_MAX 256
#else
#ifdef __APPLE__
#ifndef HOST_NAME_MAX
#ifdef _POSIX_HOST_NAME_MAX
#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
#else
#define HOST_NAME_MAX 256
#endif
#endif
char hostname [HOST_NAME_MAX + 1];
Expand Down

0 comments on commit 15854fd

Please sign in to comment.