fix: windows build error
This commit is contained in:
parent
8066c68b2d
commit
2fdc06e62d
|
@ -321,6 +321,7 @@ int32_t cfgSetItem(SConfig *pCfg, const char *name, const char *value, ECfgSrcTy
|
||||||
case CFG_DTYPE_INT64:
|
case CFG_DTYPE_INT64:
|
||||||
return cfgSetInt64(pItem, value, stype);
|
return cfgSetInt64(pItem, value, stype);
|
||||||
case CFG_DTYPE_FLOAT:
|
case CFG_DTYPE_FLOAT:
|
||||||
|
case CFG_DTYPE_DOUBLE:
|
||||||
return cfgSetFloat(pItem, value, stype);
|
return cfgSetFloat(pItem, value, stype);
|
||||||
case CFG_DTYPE_STRING:
|
case CFG_DTYPE_STRING:
|
||||||
return cfgSetString(pItem, value, stype);
|
return cfgSetString(pItem, value, stype);
|
||||||
|
@ -506,6 +507,8 @@ const char *cfgDtypeStr(ECfgDataType type) {
|
||||||
return "int64";
|
return "int64";
|
||||||
case CFG_DTYPE_FLOAT:
|
case CFG_DTYPE_FLOAT:
|
||||||
return "float";
|
return "float";
|
||||||
|
case CFG_DTYPE_FLOAT:
|
||||||
|
return "double";
|
||||||
case CFG_DTYPE_STRING:
|
case CFG_DTYPE_STRING:
|
||||||
return "string";
|
return "string";
|
||||||
case CFG_DTYPE_DIR:
|
case CFG_DTYPE_DIR:
|
||||||
|
@ -632,6 +635,7 @@ void cfgDumpCfg(SConfig *pCfg, bool tsc, bool dump) {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case CFG_DTYPE_FLOAT:
|
case CFG_DTYPE_FLOAT:
|
||||||
|
case CFG_DTYPE_DOUBLE:
|
||||||
if (dump) {
|
if (dump) {
|
||||||
printf("%s %s %.2f", src, name, pItem->fval);
|
printf("%s %s %.2f", src, name, pItem->fval);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
#include "Huffman.h"
|
#include "Huffman.h"
|
||||||
#include "transcode.h"
|
#include "transcode.h"
|
||||||
#include "fse.h"
|
#include "fse.h"
|
||||||
#include <sys/time.h>
|
|
||||||
|
|
||||||
void new_TightDataPointStorageD_Empty(TightDataPointStorageD **this)
|
void new_TightDataPointStorageD_Empty(TightDataPointStorageD **this)
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
#include "Huffman.h"
|
#include "Huffman.h"
|
||||||
#include "transcode.h"
|
#include "transcode.h"
|
||||||
#include "fse.h"
|
#include "fse.h"
|
||||||
#include <sys/time.h>
|
|
||||||
|
|
||||||
void new_TightDataPointStorageF_Empty(TightDataPointStorageF **this)
|
void new_TightDataPointStorageF_Empty(TightDataPointStorageF **this)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue