From 79641e6232a575b360d6daa83cefc5546b954a79 Mon Sep 17 00:00:00 2001 From: diego Date: Mon, 8 Feb 2010 10:05:49 +0000 Subject: Merge some preprocessor conditionals where appropriate. This saves a few lines and simplifies the code slightly. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30525 b3059339-0415-0410-9bf9-f77b7e298cf2 --- loader/ldt_keeper.c | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'loader/ldt_keeper.c') diff --git a/loader/ldt_keeper.c b/loader/ldt_keeper.c index 8bffa6e958..a7c250de8e 100644 --- a/loader/ldt_keeper.c +++ b/loader/ldt_keeper.c @@ -60,14 +60,10 @@ int modify_ldt(int func, void *ptr, unsigned long bytecount); #if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) #include #include -#endif - -#if defined(__APPLE__) +#elif defined(__APPLE__) #include #include -#endif - -#ifdef __svr4__ +#elif defined(__svr4__) #include #include @@ -238,9 +234,7 @@ ldt_fs_t* Setup_LDT_Keeper(void) perror("install_fs"); printf("Couldn't install fs segment, expect segfault\n"); } -#endif /*linux*/ - -#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__APPLE__) +#elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__APPLE__) { unsigned long d[2]; @@ -262,9 +256,7 @@ ldt_fs_t* Setup_LDT_Keeper(void) #endif } } -#endif /* __NetBSD__ || __FreeBSD__ || __OpenBSD__ || __DragonFly__ || __APPLE__ */ - -#if defined(__svr4__) +#elif defined(__svr4__) { struct ssd ssd; ssd.sel = LDT_SEL(TEB_SEL_IDX); -- cgit v1.2.3