Fix compile issues on Windows with rtdist build

This commit is contained in:
rdb 2015-06-04 11:44:29 +02:00
parent 960b178545
commit 4a88d71ff6
2 changed files with 9 additions and 4 deletions

View File

@ -430,14 +430,18 @@
/* These symbols are used in dtoolsymbols.h and pandasymbols.h. */
#if defined(WIN32_VC) && !defined(CPPPARSER) && !defined(LINK_ALL_STATIC)
#define EXPORT_CLASS __declspec(dllexport)
#define EXPORT_TEMPL
#define IMPORT_CLASS __declspec(dllimport)
#define IMPORT_TEMPL extern
#else
#define EXPORT_CLASS
#define EXPORT_TEMPL
#define IMPORT_CLASS
#endif
/* "extern template" is now part of the C++11 standard. */
#if !defined(CPPPARSER) && !defined(LINK_ALL_STATIC)
#define EXPORT_TEMPL
#define IMPORT_TEMPL extern
#else
#define EXPORT_TEMPL
#define IMPORT_TEMPL
#endif
#ifdef __cplusplus
@ -445,4 +449,3 @@
#endif
#endif

View File

@ -30,6 +30,8 @@ THE SOFTWARE.
#if defined(_MSC_VER)
#include <intrin.h>
#include <float.h>
#define copysign _copysign
#endif
#define UINT64_C2(h, l) ((static_cast<uint64_t>(h) << 32) | static_cast<uint64_t>(l))