comparison libfaim/faim/aim.h @ 638:525c566741da

[gaim-migrate @ 648] small libfaim changes. no, it doesn't compile on solaris yet. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 08 Aug 2000 05:02:59 +0000
parents 3133ab511d92
children 58106806ac2b
comparison
equal deleted inserted replaced
637:8f0ba638d819 638:525c566741da
41 #include <pthread.h> 41 #include <pthread.h>
42 #define faim_mutex_t pthread_mutex_t 42 #define faim_mutex_t pthread_mutex_t
43 #define faim_mutex_init pthread_mutex_init 43 #define faim_mutex_init pthread_mutex_init
44 #define faim_mutex_lock pthread_mutex_lock 44 #define faim_mutex_lock pthread_mutex_lock
45 #define faim_mutex_unlock pthread_mutex_unlock 45 #define faim_mutex_unlock pthread_mutex_unlock
46 #define faim_mutex_destroy pthread_mutex_destroy
46 #elif defined(FAIM_USEFAKELOCKS) 47 #elif defined(FAIM_USEFAKELOCKS)
47 /* 48 /*
48 * For platforms without pthreads, we also assume 49 * For platforms without pthreads, we also assume
49 * we're not linking against a threaded app. Which 50 * we're not linking against a threaded app. Which
50 * means we don't have to do real locking. The 51 * means we don't have to do real locking. The
53 */ 54 */
54 #define faim_mutex_t char 55 #define faim_mutex_t char
55 #define faim_mutex_init(x, y) *x = 0 56 #define faim_mutex_init(x, y) *x = 0
56 #define faim_mutex_lock(x) *x = 1; 57 #define faim_mutex_lock(x) *x = 1;
57 #define faim_mutex_unlock(x) *x = 0; 58 #define faim_mutex_unlock(x) *x = 0;
59 #define faim_mutex_destroy(x) *x = 0;
58 #endif 60 #endif
59 61
60 /* Portability stuff (DMP) */ 62 /* Portability stuff (DMP) */
61 63
62 #ifdef _WIN32 64 #ifdef _WIN32