Print this page
5262 libm needs to be carefully unifdef'd
5268 libm doesn't need to hide symbols which are already local

@@ -55,14 +55,12 @@
 
 /* external globals */
 void (*__mt_fex_sync)() = NULL; /* for synchronization with libmtsk */
 #pragma weak __mt_fex_sync
 
-#ifdef LIBM_MT_FEX_SYNC
 void (*__libm_mt_fex_sync)() = NULL; /* new, improved version of above */
 #pragma weak __libm_mt_fex_sync
-#endif
 
 /* private variables */
 static fex_handler_t main_handlers;
 static int handlers_initialized = 0;
 static thread_key_t handlers_key;

@@ -143,11 +141,10 @@
         }
         else if (master && fex_get_log())
                 __fex_update_te();
 }
 
-#ifdef LIBM_MT_FEX_SYNC
 /*
 *  The following function may be used for synchronization with any
 *  internal project that manages multiple threads
 */
 enum __libm_mt_fex_sync_actions {

@@ -202,11 +199,10 @@
                 }
 #endif
                 break;
         }
 }
-#endif
 
 #if defined(__sparc)
 
 /*
 *  Code for setting or clearing interval mode on US-III and above.

@@ -840,10 +836,8 @@
         }
 
         /* synchronize with libmtsk */
         __mt_fex_sync = __fex_sync_with_libmtsk;
 
-#ifdef LIBM_MT_FEX_SYNC
         /* synchronize with other projects */
         __libm_mt_fex_sync = __fex_sync_with_threads;
-#endif
 }