Commit bb602c9f authored by Martti Mela's avatar Martti Mela

references to SU_USE_OSX_CF_API -> s/USE/HAVE/

darcs-hash:20060927225152-1b897-e7659ed7d7f05b9a52b1e851ec6af4962b6dd2f0.gz
parent e5647f1d
......@@ -73,7 +73,7 @@
#undef SU_HAVE_WINSOCK2
/** Define as 1 if you have OSX CoreFoundation interface */
#undef SU_USE_OSX_CF_API
#undef SU_HAVE_OSX_CF_API
/** Define as 1 if you have inline functions */
#undef SU_HAVE_INLINE
......
......@@ -47,7 +47,7 @@
#if SU_HAVE_POLL
#include <sys/poll.h>
#endif
#if SU_USE_OSX_CF_API
#if SU_HAVE_OSX_CF_API
#include <CoreFoundation/CoreFoundation.h>
#endif
......@@ -56,7 +56,7 @@ SOFIA_BEGIN_DECLS
/* ---------------------------------------------------------------------- */
/* Constants */
#if SU_USE_OSX_CF_API
#if SU_HAVE_OSX_CF_API
#define SU_WAIT_CMP(x, y) \
(((x).fd - (y).fd) ? ((x).fd - (y).fd) : ((x).events - (y).events))
......@@ -146,7 +146,7 @@ typedef struct _pollfd {
short events; /* requested events */
short revents; /* returned events */
} su_wait_t;
#elif SU_USE_OSX_CF_API
#elif SU_HAVE_OSX_CF_API
/* Use container for both pollfds and CoreFoundation sources */
/* NOTE! The order is crucial! */
typedef struct {
......
......@@ -140,7 +140,7 @@ int su_wait_create(su_wait_t *newwait, su_socket_t socket, int events)
*newwait = h;
#elif SU_USE_OSX_CF_API
#elif SU_HAVE_OSX_CF_API
CFSocketRef cf_socket;
CFRunLoopRef rl = CFRunLoopGetCurrent();
......@@ -194,7 +194,7 @@ int su_wait_destroy(su_wait_t *waitobj)
su_wait_t w0 = NULL;
if (*waitobj)
WSACloseEvent(*waitobj);
#elif SU_USE_OSX_CF_API
#elif SU_HAVE_OSX_CF_API
su_wait_t w0 = { INVALID_SOCKET, 0, 0, NULL };
CFRunLoopRef rl = CFRunLoopGetCurrent();
if (waitobj && waitobj->w_source) {
......
......@@ -50,7 +50,7 @@ struct pinger;
#define SU_INTERNAL_P su_root_t *
#define SU_MSG_ARG_T su_sockaddr_t
#define SU_USE_OSX_CF_API 1
#define SU_HAVE_OSX_CF_API 1
#include "sofia-sip/su.h"
#include "sofia-sip/su_wait.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment