forked from mia/Aegisub
Use elif instead of nested ifdefs.
Originally committed to SVN as r3567.
This commit is contained in:
parent
ecc15a9935
commit
db35bacceb
1 changed files with 3 additions and 5 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue