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
1 changed files with 3 additions and 5 deletions

View File

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