int skip_spaces;
};
-static base64_t default_base64 =
- { .charlist = DEFAULT_CHARLIST,
- .use_padding = 1 };
+static base64_t default_base64 = {DEFAULT_CHARLIST, "", 0, 1, 0};
static void
initialize_charmap(base64_t *base64)
#if defined(WIN32)
#include <ws2tcpip.h>
#include <windows.h>
+#ifndef snprintf
+#define snprintf _snprintf
+#endif
#else
#include <sys/types.h>
#include <sys/socket.h>
#include <stdio.h>
#if defined(WIN32)
-#define STDCALL __stdcall
#define EXP_FUNC __declspec(dllexport)
#else
#define STDCALL
#include <assert.h>
#include "http_response.h"
+#include "compat.h"
struct http_response_s {
int complete;
length = -1;
for (ptr=result; ptr!=NULL; ptr=ptr->ai_next) {
- if (family == ptr->ai_family && dstlen >= ptr->ai_addrlen) {
+ if (family == ptr->ai_family && (unsigned int)dstlen >= ptr->ai_addrlen) {
memcpy(dst, ptr->ai_addr, ptr->ai_addrlen);
length = ptr->ai_addrlen;
break;
#include "utils.h"
#include "netutils.h"
#include "logger.h"
+#include "compat.h"
/* Actually 345 bytes for 2048-bit key */
#define MAX_SIGNATURE_LEN 512
raop_buffer_entry_t *entry = &raop_buffer->entries[i];
entry->audio_buffer_size = audio_buffer_size;
entry->audio_buffer_len = 0;
- entry->audio_buffer = raop_buffer->buffer+i*audio_buffer_size;
+ entry->audio_buffer = (char *)raop_buffer->buffer+i*audio_buffer_size;
}
/* Initialize ALAC decoder */