Update nfd-extended to 1.0.2.

This commit is contained in:
Bartosz Taudul 2023-04-05 17:19:23 +02:00
parent ab6c492117
commit eb8f485f99
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
3 changed files with 983 additions and 971 deletions

View File

@ -180,6 +180,10 @@ const char* NFD_GetError(void) {
return g_errorstr;
}
void NFD_ClearError(void) {
NFDi_SetError(NULL);
}
void NFD_FreePathN(nfdnchar_t* filePath) {
NFDi_Free((void*)filePath);
}

View File

@ -14,9 +14,17 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/random.h> // for the random token string
#include <unistd.h> // for access()
#if !defined(__has_include) || !defined(__linux__)
#include <sys/random.h> // for getrandom() - the random token string
#elif __has_include(<sys/random.h>)
#include <sys/random.h>
#else // for GLIBC < 2.25
#include <sys/syscall.h>
#define getrandom(buf, sz, flags) syscall(SYS_getrandom, buf, sz, flags)
#endif
#include "nfd.h"
/*