Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libcifpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
libcifpp
Commits
b1047154
Unverified
Commit
b1047154
authored
Jun 29, 2021
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
missing include, export symbols on Windows
parent
c361af37
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
6 deletions
+20
-6
include/cif++/Cif++.hpp
+1
-1
include/cif++/CifUtils.hpp
+12
-1
include/cif++/Symmetry.hpp
+6
-4
src/CifUtils.cpp
+1
-0
No files found.
include/cif++/Cif++.hpp
View file @
b1047154
...
@@ -106,7 +106,7 @@ namespace cif
...
@@ -106,7 +106,7 @@ namespace cif
{
{
// flag for verbose output
// flag for verbose output
extern
int
VERBOSE
;
extern
CIFPP_DLL_IMPORT
(
int
)
VERBOSE
;
// mmCIF mapping
// mmCIF mapping
// A CIF data file in this case contains entries (data blocks) which can contain
// A CIF data file in this case contains entries (data blocks) which can contain
...
...
include/cif++/CifUtils.hpp
View file @
b1047154
...
@@ -39,11 +39,22 @@
...
@@ -39,11 +39,22 @@
#endif
#endif
#if _MSC_VER
#if _MSC_VER
constexpr
inline
bool
isatty
(
int
)
{
return
false
;
}
#include <io.h>
#define isatty _isatty
#else
#else
#include <unistd.h>
#include <unistd.h>
#endif
#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
namespace
cif
{
{
...
...
include/cif++/Symmetry.hpp
View file @
b1047154
...
@@ -30,6 +30,8 @@
...
@@ -30,6 +30,8 @@
#include <cstdint>
#include <cstdint>
#include <array>
#include <array>
#include "CifUtils.hpp"
namespace
mmcif
namespace
mmcif
{
{
...
@@ -43,8 +45,8 @@ struct Spacegroup
...
@@ -43,8 +45,8 @@ struct Spacegroup
int
nr
;
int
nr
;
};
};
extern
const
Spacegroup
kSpaceGroups
[];
extern
CIFPP_DLL_IMPORT
(
const
Spacegroup
)
kSpaceGroups
[];
extern
const
std
::
size_t
kNrOfSpaceGroups
;
extern
CIFPP_DLL_IMPORT
(
const
std
::
size_t
)
kNrOfSpaceGroups
;
// --------------------------------------------------------------------
// --------------------------------------------------------------------
...
@@ -105,8 +107,8 @@ struct SymopDataBlock
...
@@ -105,8 +107,8 @@ struct SymopDataBlock
static_assert
(
sizeof
(
SymopDataBlock
)
==
sizeof
(
uint64_t
),
"Size of SymopData is wrong"
);
static_assert
(
sizeof
(
SymopDataBlock
)
==
sizeof
(
uint64_t
),
"Size of SymopData is wrong"
);
extern
const
SymopDataBlock
kSymopNrTable
[];
extern
CIFPP_DLL_IMPORT
(
const
SymopDataBlock
)
kSymopNrTable
[];
extern
const
std
::
size_t
kSymopNrTableSize
;
extern
CIFPP_DLL_IMPORT
(
const
std
::
size_t
)
kSymopNrTableSize
;
// --------------------------------------------------------------------
// --------------------------------------------------------------------
...
...
src/CifUtils.cpp
View file @
b1047154
...
@@ -39,6 +39,7 @@
...
@@ -39,6 +39,7 @@
#include <map>
#include <map>
#include <mutex>
#include <mutex>
#include <regex>
#include <regex>
#include <sstream>
#include <thread>
#include <thread>
#include <tuple>
#include <tuple>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment