This bugzilla service is closed. All entries have been migrated to https://gitlab.com/libeigen/eigen
View | Details | Raw Unified | Return to bug 861
Collapse All | Expand All

(-)a/Eigen/src/Core/util/Memory.h (-1 / +1 lines)
Lines 59-75 Link Here
59
59
60
#endif
60
#endif
61
61
62
// See bug 554 (http://eigen.tuxfamily.org/bz/show_bug.cgi?id=554)
62
// See bug 554 (http://eigen.tuxfamily.org/bz/show_bug.cgi?id=554)
63
// It seems to be unsafe to check _POSIX_ADVISORY_INFO without including unistd.h first.
63
// It seems to be unsafe to check _POSIX_ADVISORY_INFO without including unistd.h first.
64
// Currently, let's include it only on unix systems:
64
// Currently, let's include it only on unix systems:
65
#if defined(__unix__) || defined(__unix)
65
#if defined(__unix__) || defined(__unix)
66
  #include <unistd.h>
66
  #include <unistd.h>
67
  #if ((defined __QNXNTO__) || (defined _GNU_SOURCE) || ((defined _XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600))) && (defined _POSIX_ADVISORY_INFO) && (_POSIX_ADVISORY_INFO > 0)
67
  #if ((defined __QNXNTO__) || (defined _GNU_SOURCE) || (defined __PGI) || ((defined _XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600))) && (defined _POSIX_ADVISORY_INFO) && (_POSIX_ADVISORY_INFO > 0)
68
    #define EIGEN_HAS_POSIX_MEMALIGN 1
68
    #define EIGEN_HAS_POSIX_MEMALIGN 1
69
  #endif
69
  #endif
70
#endif
70
#endif
71
71
72
#ifndef EIGEN_HAS_POSIX_MEMALIGN
72
#ifndef EIGEN_HAS_POSIX_MEMALIGN
73
  #define EIGEN_HAS_POSIX_MEMALIGN 0
73
  #define EIGEN_HAS_POSIX_MEMALIGN 0
74
#endif
74
#endif
75
75

Return to bug 861