return b64encode_tinc_internal(src, dst, length, base64_urlsafe);
}
-#ifdef HAVE_MINGW
+#ifdef HAVE_WINDOWS
const char *winerror(int err) {
static char buf[1024], *ptr;
}
#endif
-unsigned int bitfield_to_int(const void *bitfield, size_t size) {
- unsigned int value = 0;
-
- if(size > sizeof(value)) {
- size = sizeof(value);
- }
-
- memcpy(&value, bitfield, size);
- return value;
-}
-
bool check_id(const char *id) {
if(!id || !*id) {
return false;