*** ./src/geodesic.c.ORIG Wed Apr 8 10:36:45 2015 --- ./src/geodesic.c Wed Apr 8 10:37:19 2015 *************** *** 41,48 **** typedef int boolx; static unsigned init = 0; ! static const int FALSE = 0; ! static const int TRUE = 1; static unsigned digits, maxit1, maxit2; static real epsilon, realmin, pi, degree, NaN, tiny, tol0, tol1, tol2, tolb, xthresh; --- 41,48 ---- typedef int boolx; static unsigned init = 0; ! //static const int FALSE = 0; ! //static const int TRUE = 1; static unsigned digits, maxit1, maxit2; static real epsilon, realmin, pi, degree, NaN, tiny, tol0, tol1, tol2, tolb, xthresh; *** ./src/pj_mutex.c.ORIG Wed Jul 17 21:29:37 2019 --- ./src/pj_mutex.c Wed Jul 17 21:29:59 2019 *************** *** 101,107 **** #include "pthread.h" static pthread_mutex_t precreated_lock = PTHREAD_MUTEX_INITIALIZER; ! static pthread_mutex_t core_lock; static int core_lock_created = 0; /************************************************************************/ --- 101,107 ---- #include "pthread.h" static pthread_mutex_t precreated_lock = PTHREAD_MUTEX_INITIALIZER; ! static pthread_mutex_t MYcore_lock; static int core_lock_created = 0; /************************************************************************/ *************** *** 129,141 **** #else pthread_mutexattr_settype(&mutex_attr, PTHREAD_MUTEX_RECURSIVE_NP); #endif ! pthread_mutex_init(&core_lock, &mutex_attr); core_lock_created = 1; pthread_mutex_unlock( &precreated_lock ); } ! pthread_mutex_lock( &core_lock); } /************************************************************************/ --- 129,141 ---- #else pthread_mutexattr_settype(&mutex_attr, PTHREAD_MUTEX_RECURSIVE_NP); #endif ! pthread_mutex_init(&MYcore_lock, &mutex_attr); core_lock_created = 1; pthread_mutex_unlock( &precreated_lock ); } ! pthread_mutex_lock( &MYcore_lock); } /************************************************************************/ *************** *** 146,152 **** void pj_release_lock() { ! pthread_mutex_unlock( &core_lock ); } /************************************************************************/ --- 146,152 ---- void pj_release_lock() { ! pthread_mutex_unlock( &MYcore_lock ); } /************************************************************************/