change omp loop var to bst_omp_uint, add XGB_DLL to wrapper

This commit is contained in:
tqchen
2014-08-26 19:37:04 -07:00
parent 97467fe807
commit 7739f57c8b
13 changed files with 100 additions and 88 deletions

View File

@@ -7,6 +7,15 @@
*/
#if defined(_OPENMP)
#include <omp.h>
namespace xgboost {
// loop variable used in openmp
#ifdef _MSC_VER
typedef int bst_omp_uint;
#else
typedef unsigned bst_omp_uint;
#endif
} // namespace xgboost
#else
#ifndef DISABLE_OPENMP
#ifndef _MSC_VER