diff options
Diffstat (limited to 'src/porting.h')
-rw-r--r-- | src/porting.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/porting.h b/src/porting.h index ddb56cf7d..add3926ea 100644 --- a/src/porting.h +++ b/src/porting.h @@ -377,7 +377,7 @@ const char *getVideoDriverName(irr::video::E_DRIVER_TYPE type); const char *getVideoDriverFriendlyName(irr::video::E_DRIVER_TYPE type); #endif -inline const char * getPlatformName() +inline const char *getPlatformName() { return #if defined(ANDROID) @@ -401,8 +401,12 @@ inline const char * getPlatformName() "AIX" #elif defined(__hpux) "HP-UX" -#elif defined(__sun) && defined(__SVR4) - "Solaris" +#elif defined(__sun) || defined(sun) + #if defined(__SVR4) + "Solaris" + #else + "SunOS" + #endif #elif defined(__CYGWIN__) "Cygwin" #elif defined(__unix__) || defined(__unix) |