Use _aligned_free for MinGW

This commit is contained in:
Max Lv
2019-01-22 12:43:39 +08:00
parent 4fb34de463
commit fbb311ed06
2 changed files with 12 additions and 6 deletions
+1 -6
View File
@@ -229,15 +229,10 @@ int set_nofile(int nofile);
void *ss_malloc(size_t size);
void *ss_align(size_t size);
void *ss_realloc(void *ptr, size_t new_size);
void ss_free(void *ptr);
int ss_is_ipv6addr(const char *addr);
#define ss_free(ptr) \
do { \
free(ptr); \
ptr = NULL; \
} while (0)
char *get_default_conf(void);
#endif // _UTILS_H