Skip to content

Commit

Permalink
Merge pull request #20 from biovault/fix_define_HNSWLIB_SUPPORTED
Browse files Browse the repository at this point in the history
HNSWLIB_SUPPORTED was not correctly being defined
  • Loading branch information
bldrvnlw authored Jul 17, 2020
2 parents 04d07db + a276ab3 commit b2d6b2c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hdi/dimensionality_reduction/hierarchical_sne_inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,17 @@

#ifdef HNSWLIB_FOUND
#ifdef _MSC_VER
#if (__cplusplus >=201103)
#if(_MSC_VER >= 1900)
#include "hnswlib/hnswlib.h"
#include "hnswlib/space_l2.h"
#define HNSWLIB_SUPPORTED
#endif //__cplusplus >=201103
#endif //(_MSC_VER >= 1900)
#else // _MSC_VER
#if (__cplusplus >=201103)
#include "hnswlib/hnswlib.h"
#include "hnswlib/space_l2.h"
#define HNSWLIB_SUPPORTED
#endif //(__cplusplus >=201103)
#endif // _MSC_VER
#endif //HNSWLIB_FOUND

Expand Down
11 changes: 11 additions & 0 deletions hdi/dimensionality_reduction/knn_utils.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
#include "knn_utils.h"
#include <stdexcept>

#ifdef HNSWLIB_FOUND
#ifdef _MSC_VER
#if(_MSC_VER >= 1900)
#define HNSWLIB_SUPPORTED
#endif //(_MSC_VER >= 1900)
#else // _MSC_VER
#if (__cplusplus >=201103)
#define HNSWLIB_SUPPORTED
#endif //(__cplusplus >=201103)
#endif // _MSC_VER
#endif //HNSWLIB_FOUND

namespace hdi {
namespace dr {
Expand Down

0 comments on commit b2d6b2c

Please sign in to comment.