quiet spacenav output on linux for regular builds, ifdef signed int for msvc openmp.

This commit is contained in:
Campbell Barton 2012-07-31 21:26:14 +00:00
parent cdc6793dd8
commit 33a9cafc3b
2 changed files with 8 additions and 1 deletions

View File

@ -58,8 +58,11 @@ GHOST_NDOFManagerX11::GHOST_NDOFManagerX11(GHOST_System& sys)
}
}
else {
#ifdef DEBUG
/* annoying for official builds, just adds noise and most prople don't own these */
puts("ndof: spacenavd not found");
/* This isn't a hard error, just means the user doesn't have a 3D mouse. */
#endif
}
}

View File

@ -1301,7 +1301,11 @@ void BKE_maskrasterize_buffer(MaskRasterHandle *mr_handle,
const unsigned int width, const unsigned int height,
float *buffer)
{
int y;
#ifdef _MSC_VER
int y; /* msvc requires signed for some reason */
#else
unsigned int y;
#endif
#pragma omp parallel for private(y)
for (y = 0; y < height; y++) {