Use elif instead of nested ifdefs.

Originally committed to SVN as r3567.
This commit is contained in:
Amar Takhar 2009-09-26 20:05:54 +00:00
parent ecc15a9935
commit db35bacceb

View file

@ -33,14 +33,12 @@
Platform* Platform::GetPlatform() { Platform* Platform::GetPlatform() {
#ifdef __UNIX__ #ifdef __UNIX__
# ifdef __FREEBSD__ # if defined(__FREEBSD__)
Platform *p = new PlatformUnixBSD; Platform *p = new PlatformUnixBSD;
# else # elif defined(__LINUX__)
# ifdef __LINUX__
Platform *p = new PlatformUnixLinux; Platform *p = new PlatformUnixLinux;
# else # else
Platform *p = new PlatformUnix; Platform *p = new PlatformUnix;
# endif
# endif # endif
#endif // __UNIX__ #endif // __UNIX__
p->Init(); p->Init();