X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached-1.0%2Fplatform.h;h=efdf53f81b495dd2ea2ad3f5bac8cbd9b554b6c8;hb=dc1e22ba362663bf052e7cfbbdf933bb462a7006;hp=19248283f5d14d1ca0bae4010f67d64c4f31b50b;hpb=bd53173d0a23c8c2a0dac68056cbd2cc52d5a6ef;p=awesomized%2Flibmemcached diff --git a/libmemcached-1.0/platform.h b/libmemcached-1.0/platform.h index 19248283..efdf53f8 100644 --- a/libmemcached-1.0/platform.h +++ b/libmemcached-1.0/platform.h @@ -2,8 +2,8 @@ * * Libmemcached library * - * Copyright (C) 2011 Data Differential, http://datadifferential.com/ - * Copyright (C) 2006-2009 Brian Aker, Trond Norbye All rights reserved. + * Copyright (C) 2011 Data Differential, http://datadifferential.com/ + * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are @@ -38,19 +38,25 @@ #pragma once -#ifdef WIN32 +#if defined(_WIN32) +# include +# include + +#ifndef HAVE_IN_PORT_T +typedef int in_port_t; +# define HAVE_IN_PORT_T 1 +#endif -#include -#include -typedef short in_port_t; typedef SOCKET memcached_socket_t; + #else +# include +# include +# include +# include +# include +# include + typedef int memcached_socket_t; -#include -#include -#include -#include -#include -#include - -#endif /* WIN32 */ + +#endif /* _WIN32 */