Commit 4923bb8b authored by Pekka Pessi's avatar Pekka Pessi

Defining non-standard define UINT32_MAX where it is used.

darcs-hash:20060920132853-65a35-1240f8b02584f6fe4ca7d5ab64cd60464e3f033a.gz
parent 3612bd10
...@@ -54,6 +54,10 @@ ...@@ -54,6 +54,10 @@
#include <sofia-sip/http_header.h> #include <sofia-sip/http_header.h>
#include <sofia-sip/http_status.h> #include <sofia-sip/http_status.h>
#ifndef UINT32_MAX
#define UINT32_MAX (0xffffffffU)
#endif
/** Complete a HTTP request. */ /** Complete a HTTP request. */
int http_request_complete(msg_t *msg) int http_request_complete(msg_t *msg)
{ {
......
...@@ -69,6 +69,10 @@ typedef struct server_s server_t; ...@@ -69,6 +69,10 @@ typedef struct server_s server_t;
#endif #endif
#include <sofia-sip/htable.h> #include <sofia-sip/htable.h>
#ifndef UINT32_MAX
#define UINT32_MAX (0xffffffffU)
#endif
enum { SERVER_TICK = 1000 }; enum { SERVER_TICK = 1000 };
#define SERVER_VERSION "nth/" NTH_VERSION #define SERVER_VERSION "nth/" NTH_VERSION
......
...@@ -49,6 +49,10 @@ ...@@ -49,6 +49,10 @@
#include <assert.h> #include <assert.h>
#include <limits.h> #include <limits.h>
#ifndef UINT32_MAX
#define UINT32_MAX (0xffffffffU)
#endif
/** Version of the SIP module */ /** Version of the SIP module */
char const sip_parser_version[] = VERSION; char const sip_parser_version[] = VERSION;
......
...@@ -460,12 +460,6 @@ ...@@ -460,12 +460,6 @@
#endif // VC8+ #endif // VC8+
#endif #endif
#ifdef WIN32
#ifndef UINT32_MAX
#define UINT32_MAX 0xffffffff
#endif
#endif
/* size_t/ssize_t modifiers /* size_t/ssize_t modifiers
* ref: http://msdn2.microsoft.com/en-us/library/tcxf1dw6.aspx */ * ref: http://msdn2.microsoft.com/en-us/library/tcxf1dw6.aspx */
#define MOD_ZD "%ld" #define MOD_ZD "%ld"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment