Fixed linux support
This commit is contained in:
@@ -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,8 +1,4 @@
|
||||
#ifdef _WIN32
|
||||
#include "monetdbe.h"
|
||||
#else
|
||||
#include "monetdb/monetdbe.h"
|
||||
#endif
|
||||
#include "monetdbe.h"
|
||||
|
||||
struct Context;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user