*/
GSocketEventFlags GSocket_Select(GSocket *socket, GSocketEventFlags flags)
{
- if (USE_GUI())
+ if (!USE_GUI())
{
GSocketEventFlags result = 0;
fd_set readfds;
return (result & flags);
}
- else /* !USE_GUI() */
+ else /* USE_GUI() */
{
assert(socket != NULL);
return flags & socket->m_detected;
GSocketError GAddress_UNIX_SetPath(GAddress *address, const char *path)
{
+#if defined(__BORLANDC__)
+ /* prevents unused variable message in Borland */
+ (void)path;
+#endif
assert (address != NULL);
address->m_error = GSOCK_INVADDR;
return GSOCK_INVADDR;
GSocketError GAddress_UNIX_GetPath(GAddress *address, char *path, size_t sbuf)
{
+#if defined(__BORLANDC__)
+ /* prevents unused variable message in Borland */
+ (void)path;
+ (void)sbuf;
+#endif
assert (address != NULL);
address->m_error = GSOCK_INVADDR;
return GSOCK_INVADDR;