fixes for building with MSVC

This commit is contained in:
YuguoZhang
2025-05-24 14:05:09 +08:00
committed by Steffen Jaeckel
parent f8cda0f65c
commit 79066d797b
8 changed files with 22 additions and 7 deletions

View File

@@ -11,11 +11,16 @@
*/
#include <assert.h>
#include <libgen.h> /* basename */
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <strophe.h>
#ifndef _WIN32
#include <libgen.h> /* basename */
#else
#define strtok_r strtok_s
#define basename(x) "vcard"
#endif
typedef struct {
xmpp_ctx_t *ctx;