Commit b1047154 by Maarten L. Hekkelman

missing include, export symbols on Windows

parent c361af37
......@@ -106,7 +106,7 @@ namespace cif
{
// flag for verbose output
extern int VERBOSE;
extern CIFPP_DLL_IMPORT(int) VERBOSE;
// mmCIF mapping
// A CIF data file in this case contains entries (data blocks) which can contain
......
......@@ -39,11 +39,22 @@
#endif
#if _MSC_VER
constexpr inline bool isatty(int) { return false; }
#include <io.h>
#define isatty _isatty
#else
#include <unistd.h>
#endif
#ifdef _MSC_VER
#ifdef CIFPP_BUILD_DLL
#define CIFPP_DLL_IMPORT(type) __declspec(dllexport) type
#else
#define CIFPP_DLL_IMPORT(type) __declspec(dllimport) type
#endif
#else
#define CIFPP_DLL_IMPORT(type) type
#endif
namespace cif
{
......
......@@ -30,6 +30,8 @@
#include <cstdint>
#include <array>
#include "CifUtils.hpp"
namespace mmcif
{
......@@ -43,8 +45,8 @@ struct Spacegroup
int nr;
};
extern const Spacegroup kSpaceGroups[];
extern const std::size_t kNrOfSpaceGroups;
extern CIFPP_DLL_IMPORT(const Spacegroup) kSpaceGroups[];
extern CIFPP_DLL_IMPORT(const std::size_t) kNrOfSpaceGroups;
// --------------------------------------------------------------------
......@@ -105,8 +107,8 @@ struct SymopDataBlock
static_assert(sizeof(SymopDataBlock) == sizeof(uint64_t), "Size of SymopData is wrong");
extern const SymopDataBlock kSymopNrTable[];
extern const std::size_t kSymopNrTableSize;
extern CIFPP_DLL_IMPORT(const SymopDataBlock) kSymopNrTable[];
extern CIFPP_DLL_IMPORT(const std::size_t) kSymopNrTableSize;
// --------------------------------------------------------------------
......
......@@ -39,6 +39,7 @@
#include <map>
#include <mutex>
#include <regex>
#include <sstream>
#include <thread>
#include <tuple>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment