Skip to content
Snippets Groups Projects
Commit 41e4dded authored by dmitriy.gerasimov's avatar dmitriy.gerasimov
Browse files

[+] setup endiands

[+] Some more debug output
parent 5a2e97f0
No related branches found
No related tags found
No related merge requests found
......@@ -453,7 +453,9 @@ void dap_chain_cert_add_folder(const char *a_folder_path)
}
closedir(l_dir);
}
log_it(L_NOTICE, "Added folder %s",a_folder_path);
}else
log_it(L_WARNING, "Can't add folder %s to cert manager",a_folder_path);
}
/**
......
......@@ -35,7 +35,6 @@
#include <stdint.h>
#include <string.h>
#include <sys/param.h>
#if defined(__ANDROID__)
#include <byteswap.h>
#endif
......@@ -207,7 +206,18 @@ static inline void memcpy_swap64(void *dst, const void *src, size_t n) {
}
}
#if !defined(BYTE_ORDER) || !defined(LITTLE_ENDIAN) || !defined(BIG_ENDIAN)
#if !defined(BYTE_ORDER)
#define BYTE_ORDER __BYTE_ORDER__
#endif
#if !defined(LITTLE_ENDIAN)
#define LITTLE_ENDIAN __LITTLE_ENDIAN__
#endif
#if !defined(BIG_ENDIAN)
#define BIG_ENDIAN __BIG_ENDIAN__
#endif
#if !defined(BYTE_ORDER)|| !defined(LITTLE_ENDIAN) || !defined(BIG_ENDIAN)
static_assert(false, "BYTE_ORDER is undefined. Perhaps, GNU extensions are not enabled");
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment