X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fbottom.m4;h=303aaf7a6cc7d614c0088362f4a85ddbeb5333fc;hb=50f05a9503f10bbc6df4eb3ea02c7cf5e36fd6c9;hp=a02e312f66d8dee5ca3617743247cebabe34cdda;hpb=bf9d3d15ba7a261aca3302ebc095b6dbbbe928a4;p=m6w6%2Flibmemcached diff --git a/m4/bottom.m4 b/m4/bottom.m4 index a02e312f..303aaf7a 100644 --- a/m4/bottom.m4 +++ b/m4/bottom.m4 @@ -12,54 +12,23 @@ AH_TOP([ AH_BOTTOM([ +#define __STDC_FORMAT_MACROS + #if defined(__cplusplus) -#include CSTDINT_H -#include CINTTYPES_H +# include CINTTYPES_H #else -#include -#include +# include #endif #if !defined(HAVE_ULONG) && !defined(__USE_MISC) # define HAVE_ULONG 1 typedef unsigned long int ulong; -#endif +#endif +#define RPACKAGE "memcached" + +#define RVERSION "1.4.13" + ]) -AH_BOTTOM([ -#ifdef WIN32 -#define _WIN32_WINNT 0x0501 -#endif - -/* To hide the platform differences between MS Windows and Unix, I am - * going to use the Microsoft way and #define the Microsoft-specific - * functions to the unix way. Microsoft use a separate subsystem for sockets, - * but Unix normally just use a filedescriptor on the same functions. It is - * a lot easier to map back to the unix way with macros than going the other - * way without side effect ;-) - */ -#ifdef WIN32 -#include "win32/wrappers.h" -#define get_socket_errno() WSAGetLastError() -#else -#define INVALID_SOCKET -1 -#define SOCKET_ERROR -1 -#define closesocket(a) close(a) -#define get_socket_errno() errno -#endif - -#ifndef HAVE_MSG_NOSIGNAL -#define MSG_NOSIGNAL 0 -#endif - -#ifndef HAVE_MSG_DONTWAIT -#define MSG_DONTWAIT 0 -#endif - -#ifndef HAVE_MSG_MORE -#define MSG_MORE 0 -#endif - -]) ])dnl CONFIG_EXTRA