From 15854fdef9d695a6745e73dcaec7746fbb91e5d3 Mon Sep 17 00:00:00 2001 From: Aa! Date: Wed, 12 Jun 2019 13:29:22 +0200 Subject: [PATCH] Removed platform #ifdefs! --- src/Freebox.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Freebox.cpp b/src/Freebox.cpp index cf32e35..a3f99f5 100644 --- a/src/Freebox.cpp +++ b/src/Freebox.cpp @@ -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];