aboutsummaryrefslogtreecommitdiff
path: root/libsylph/socket.h
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2008-12-03 05:26:39 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2008-12-03 05:26:39 +0000
commitc846d3000225e4887948145bd7162e7e8a5af953 (patch)
treef953fbb6b2043a85979402e1cb1780d99ae9c3a3 /libsylph/socket.h
parent543bf7f1c24908bda2df3c0ea523b032b3a00a74 (diff)
added SYL_ prefix to SockFlags enum to avoid confliction with recent glibc header file.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2088 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/socket.h')
-rw-r--r--libsylph/socket.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/libsylph/socket.h b/libsylph/socket.h
index 0ad2010f..5bf8b98f 100644
--- a/libsylph/socket.h
+++ b/libsylph/socket.h
@@ -1,6 +1,6 @@
/*
* LibSylph -- E-Mail client library
- * Copyright (C) 1999-2007 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2008 Hiroyuki Yamamoto
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -46,14 +46,14 @@ typedef enum
typedef enum
{
- SOCK_NONBLOCK = 1 << 0,
- SOCK_CHECK_IO = 1 << 1
+ SYL_SOCK_NONBLOCK = 1 << 0,
+ SYL_SOCK_CHECK_IO = 1 << 1
} SockFlags;
#define SOCK_SET_FLAGS(flags, set) { (flags) |= (set); }
#define SOCK_UNSET_FLAGS(flags, set) { (flags) &= ~(set); }
-#define SOCK_IS_NONBLOCK(flags) ((flags & SOCK_NONBLOCK) != 0)
-#define SOCK_IS_CHECK_IO(flags) ((flags & SOCK_CHECK_IO) != 0)
+#define SOCK_IS_NONBLOCK(flags) ((flags & SYL_SOCK_NONBLOCK) != 0)
+#define SOCK_IS_CHECK_IO(flags) ((flags & SYL_SOCK_CHECK_IO) != 0)
typedef gint (*SockConnectFunc) (SockInfo *sock,
gpointer data);