aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--contrib/lua-torch/torch7/lib/TH/THGeneral.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/contrib/lua-torch/torch7/lib/TH/THGeneral.c b/contrib/lua-torch/torch7/lib/TH/THGeneral.c
index 6ad96b51c..998ac3212 100644
--- a/contrib/lua-torch/torch7/lib/TH/THGeneral.c
+++ b/contrib/lua-torch/torch7/lib/TH/THGeneral.c
@@ -11,13 +11,7 @@
#define __thread __declspec( thread )
#endif
-#if (defined(__unix) || defined(_WIN32))
- #if defined(__FreeBSD__)
- #include <malloc_np.h>
- #else
- #include <malloc.h>
- #endif
-#elif defined(__APPLE__)
+#if defined(__APPLE__)
#include <malloc/malloc.h>
#endif