__linux is not universally defined across all standards versions, compilers and architectures. Specifically at C99 and up, it's not defined in GCC on powerpc platform.
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=28314
Bugzilla: http://llvm.org/bugs/show_bug.cgi?id=20380
Patch by Dimitri John Ledkov <dimitri.ledkov@canonical.com>
llvm-svn: 214291
#if defined( _MSC_VER )
#include "MIUtilSystemWindows.h"
-#elif defined( __FreeBSD__ ) || defined( __linux )
+#elif defined( __FreeBSD__ ) || defined( __linux__ )
#include "MIUtilSystemLinux.h"
#elif defined( __APPLE__ )
#include "MIUtilSystemOsx.h"
// Include compiler configuration
#include "MICmnConfig.h"
-#if defined( __FreeBSD__ ) || defined( __linux )
+#if defined( __FreeBSD__ ) || defined( __linux__ )
// In-house headers:
#include "MIUtilSystemLinux.h"
return MIstatus::success;
}
-#endif // #if defined( __linux )
+#endif // #if defined( __linux__ )
// Include compiler configuration
#include "MICmnConfig.h"
-#if defined( __FreeBSD__ ) || defined( __linux )
+#if defined( __FreeBSD__ ) || defined( __linux__ )
// In-house headers:
#include "MIUtilString.h"
typedef CMIUtilSystemLinux CMIUtilSystem;
-#endif // #if defined( __linux )
+#endif // #if defined( __linux__ )