[mlpack-git] master: Fixes bfd.h: config.h must be included before this header (eedd99d)
gitdub at mlpack.org
gitdub at mlpack.org
Tue Mar 15 13:47:56 EDT 2016
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/086a75de129a97ff575c555630084c583b8ae15c...b3fe52318e33ac10c7bec4abec1d8f15600da06a
>---------------------------------------------------------------
commit eedd99da548a92a05788a69fae05fb5024f079c0
Author: Daniel Clarke <u8sand at gmail.com>
Date: Tue Mar 15 13:47:56 2016 -0400
Fixes bfd.h: config.h must be included before this header
>---------------------------------------------------------------
eedd99da548a92a05788a69fae05fb5024f079c0
src/mlpack/core/util/backtrace.cpp | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/src/mlpack/core/util/backtrace.cpp b/src/mlpack/core/util/backtrace.cpp
index 494242c..4f89d38 100644
--- a/src/mlpack/core/util/backtrace.cpp
+++ b/src/mlpack/core/util/backtrace.cpp
@@ -19,7 +19,25 @@
#include <signal.h>
#include <unistd.h>
#include <cxxabi.h>
- #include <bfd.h>
+ #ifndef PACKAGE
+ #define PACKAGE
+ #ifndef PACKAGE_VERSION
+ #define PACKAGE_VERSION
+ #include <bfd.h>
+ #undef PACKAGE_VERSION
+ #else
+ #include <bfd.h>
+ #endif
+ #undef PACKAGE
+ #else
+ #ifndef PACKAGE_VERSION
+ #define PACKAGE_VERSION
+ #include <bfd.h>
+ #undef PACKAGE_VERSION
+ #else
+ #include <bfd.h>
+ #endif
+ #endif
#include <dlfcn.h>
#endif
More information about the mlpack-git
mailing list