1 #pragma once 2 #include <string.h> 3 // support basename function 4 #include <libgen.h> 5 6 #define get_current_dir_name() getcwd(0,0) 7 #ifndef __MUSL__ 8 #define __bswap_16(x) __builtin_bswap16(x) 9 #define __bswap_32(x) __builtin_bswap32(x) 10 #define __bswap_64(x) __builtin_bswap64(x) 11 #endif 12 13 // inline void* mempcpy(void* dst, const void* src, size_t n) { 14 // return (char*)memcpy(dst, src, n) + n; 15 // } 16