Style cleanup.
[m6w6/libmemcached] / libmemcached / instance.h
index 6a56aa4c7b20f22b0f97238d6eab299e8ea48802..e564afaaa3871cf0d9b44c676380c1ef6c354bee 100644 (file)
 #pragma once
 
 #ifndef WIN32
-#include <netdb.h>
+# ifdef HAVE_NETDB_H
+#  include <netdb.h>
+# endif
 #endif
 
 #ifdef NI_MAXHOST
-#define MEMCACHED_NI_MAXHOST NI_MAXHOST
+# define MEMCACHED_NI_MAXHOST NI_MAXHOST
 #else
-#define MEMCACHED_NI_MAXHOST 1025
+# define MEMCACHED_NI_MAXHOST 1025
 #endif
 
 #ifdef NI_MAXSERV
-#define MEMCACHED_NI_MAXSERV NI_MAXSERV
+# define MEMCACHED_NI_MAXSERV NI_MAXSERV
 #else
-#define MEMCACHED_NI_MAXSERV 32
+# define MEMCACHED_NI_MAXSERV 32
 #endif
 
 #ifdef __cplusplus
@@ -59,6 +61,7 @@
 namespace org {
 namespace libmemcached {
 
+// @todo Complete class transformation
 struct Instance {
   in_port_t port() const
   {