compile error in windows

This commit is contained in:
Shengliang Guan 2020-10-31 11:56:37 +08:00
parent 395bdd2c97
commit 249e599bd1
1 changed files with 3 additions and 0 deletions

View File

@ -17,8 +17,10 @@
#include "os.h"
#include "taoserror.h"
#include "tulog.h"
#include "talloc.h"
#define TSDB_HAVE_MEMALIGN
#ifndef TSDB_USE_SYS_MEM
void *tmalloc(int32_t size) {
void *p = malloc(size);
@ -74,3 +76,4 @@ void *tmemalign(int32_t alignment, int32_t size) {
void *tmemalign(int32_t alignment, int32_t size) { return tmalloc(size); }
#endif
#endif