chiark / gitweb /
Windows support for command line client
[disorder] / lib / common.h
index 93dd4315a0c2bc862a6b22ef3dac60521de295a0..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>