mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 06:34:36 +00:00
Update nfd-extended to 1.0.2.
This commit is contained in:
parent
ab6c492117
commit
eb8f485f99
@ -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);
|
||||
}
|
||||
|
@ -14,8 +14,16 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/random.h> // for the random token string
|
||||
#include <unistd.h> // for access()
|
||||
#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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user