More minor win32 build fixes. The only linking problem is now expat.lib.
This commit is contained in:
@@ -89,6 +89,8 @@ Default(strophe)
|
||||
exenv = stropheenv.Copy()
|
||||
exenv.Append(LIBS=["strophe", "expat"])
|
||||
exenv.Append(LIBPATH=["."])
|
||||
if exenv["PLATFORM"] == "win32":
|
||||
exenv.Append(LIBS=["ws2_32", "winmm"])
|
||||
for e in path("examples", Examples):
|
||||
example = exenv.Program(e)
|
||||
Default(example)
|
||||
|
||||
@@ -20,6 +20,10 @@
|
||||
#include "common.h"
|
||||
#include "sasl.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#define strcasecmp stricmp
|
||||
#endif
|
||||
|
||||
#define FEATURES_TIMEOUT 2000 /* 2 seconds */
|
||||
#define BIND_TIMEOUT 2000 /* 2 seconds */
|
||||
#define LEGACY_TIMEOUT 2000 /* 2 seconds */
|
||||
|
||||
@@ -21,6 +21,10 @@
|
||||
#include "strophe.h"
|
||||
#include "common.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#define snprintf _snprintf
|
||||
#endif
|
||||
|
||||
static void _log_open_tag(xmpp_conn_t * const conn,
|
||||
const XML_Char **attr)
|
||||
{
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include "hash.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#define snprintf _snprintf
|
||||
#define inline __inline
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user