sync dmlc headers

This commit is contained in:
tqchen
2017-03-16 10:16:23 -07:00
parent 21b5e12913
commit a764d45cfb
4 changed files with 126 additions and 30 deletions

View File

@@ -15,9 +15,13 @@
// whether or not use c++11 support
#ifndef DMLC_USE_CXX11
#define DMLC_USE_CXX11 (defined(__GXX_EXPERIMENTAL_CXX0X__) ||\
__cplusplus >= 201103L || defined(_MSC_VER))
#if defined(__GXX_EXPERIMENTAL_CXX0X__) || defined(_MSC_VER)
#define DMLC_USE_CXX11 1
#else
#define DMLC_USE_CXX11 (__cplusplus >= 201103L)
#endif
#endif
// optionally support of lambda functions in C++11, if available
#if DMLC_USE_CXX11
#include <functional>