fix: windows build error

This commit is contained in:
Alex Duan 2023-09-19 18:08:53 +08:00
parent 8066c68b2d
commit 2fdc06e62d
3 changed files with 4 additions and 2 deletions

View File

@ -321,6 +321,7 @@ int32_t cfgSetItem(SConfig *pCfg, const char *name, const char *value, ECfgSrcTy
case CFG_DTYPE_INT64:
return cfgSetInt64(pItem, value, stype);
case CFG_DTYPE_FLOAT:
case CFG_DTYPE_DOUBLE:
return cfgSetFloat(pItem, value, stype);
case CFG_DTYPE_STRING:
return cfgSetString(pItem, value, stype);
@ -506,6 +507,8 @@ const char *cfgDtypeStr(ECfgDataType type) {
return "int64";
case CFG_DTYPE_FLOAT:
return "float";
case CFG_DTYPE_FLOAT:
return "double";
case CFG_DTYPE_STRING:
return "string";
case CFG_DTYPE_DIR:
@ -632,6 +635,7 @@ void cfgDumpCfg(SConfig *pCfg, bool tsc, bool dump) {
}
break;
case CFG_DTYPE_FLOAT:
case CFG_DTYPE_DOUBLE:
if (dump) {
printf("%s %s %.2f", src, name, pItem->fval);
printf("\n");

View File

@ -15,7 +15,6 @@
#include "Huffman.h"
#include "transcode.h"
#include "fse.h"
#include <sys/time.h>
void new_TightDataPointStorageD_Empty(TightDataPointStorageD **this)
{

View File

@ -15,7 +15,6 @@
#include "Huffman.h"
#include "transcode.h"
#include "fse.h"
#include <sys/time.h>
void new_TightDataPointStorageF_Empty(TightDataPointStorageF **this)
{