You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
Remove windows ifdefs
This commit is contained in:
@ -24,11 +24,9 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#ifndef _MSC_VER
|
||||
#ifndef __STDC_FORMAT_MACROS
|
||||
#define __STDC_FORMAT_MACROS
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <boost/algorithm/string/case_conv.hpp>
|
||||
@ -654,22 +652,14 @@ inline int dayOfWeek(std::string day) // Sunday = 0
|
||||
inline string intToString(int64_t i)
|
||||
{
|
||||
char buf[32];
|
||||
#ifndef _MSC_VER
|
||||
snprintf(buf, 32, "%" PRId64 "", i);
|
||||
#else
|
||||
snprintf(buf, 32, "%lld", i);
|
||||
#endif
|
||||
return buf;
|
||||
}
|
||||
|
||||
inline string uintToString(uint64_t i)
|
||||
{
|
||||
char buf[32];
|
||||
#ifndef _MSC_VER
|
||||
snprintf(buf, 32, "%" PRIu64 "", i);
|
||||
#else
|
||||
snprintf(buf, 32, "%llu", i);
|
||||
#endif
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user