Fixed linux support

This commit is contained in:
Bill Sun
2022-08-10 17:43:50 +08:00
parent 5699638520
commit 9d86114766
8 changed files with 13 additions and 116 deletions
+1
View File
@@ -3,6 +3,7 @@
#include <cstdio>
#include <string>
#include <limits>
#include <cstring>
template <class ...Types>
std::string generate_printf_string(const char* sep = " ", const char* end = "\n") {
std::string str;
+1 -5
View File
@@ -1,8 +1,4 @@
#ifdef _WIN32
#include "monetdbe.h"
#else
#include "monetdb/monetdbe.h"
#endif
#include "monetdbe.h"
struct Context;
+3 -1
View File
@@ -1,3 +1,4 @@
#ifdef _WIN32
#include "winhelper.h"
#include <Windows.h>
@@ -33,4 +34,5 @@ void SharedMemory::FreeMemoryMap()
UnmapViewOfFile(this->pData);
if (this->hFileMap)
CloseHandle(this->hFileMap);
}
}
#endif
+2
View File
@@ -1,5 +1,6 @@
#ifndef _WINHELPER_H
#define _WINHELPER_H
#ifdef _WIN32
static constexpr int RTLD_LAZY = 1;
void* dlopen(const char*, int);
void* dlsym(void*, const char*);
@@ -12,3 +13,4 @@ struct SharedMemory
void FreeMemoryMap();
};
#endif
#endif