chiark / gitweb /
Merge branch 'master' of git.distorted.org.uk:~mdw/publish/public-git/disorder
[disorder] / lib / common.h
index 99f867162698946bfa680019fa1da58abfaad639..6c90fd6aad0cb4f405075184b349e3e6f2dbb2cc 100644 (file)
 # include <config.h>
 #endif
 
+#if _WIN32
+# include "disorder-win32.h"
+#else
 # define SOCKET int
 # define INVALID_SOCKET (-1)
 # define declspec(x)
 # define socket_error() (errno)
 # define system_error() (errno)
+# define network_init()
+#endif
+
 #if HAVE_INTTYPES_H
 # include <inttypes.h>
 #endif