Collision flag CF_DISABLE_SPU_COLLISION_PROCESSING can be combined with other flags (avoids SPU/parallel collision dispatch)

Fix for MinGW32 build
This commit is contained in:
erwin.coumans
2010-08-30 21:46:23 +00:00
parent 33ddc450b4
commit 44b82652d0
7 changed files with 15 additions and 26 deletions

View File

@@ -45,18 +45,11 @@ char* loadProgSource(const char* cFilename, const char* cPreamble, size_t* szFin
size_t szSourceLength;
// open the OpenCL source code file
#ifdef _WIN32 // Windows version
if(fopen_s(&pFileStream, cFilename, "rb") != 0)
{
return NULL;
}
#else // Linux version
pFileStream = fopen(cFilename, "rb");
if(pFileStream == 0)
{
return NULL;
}
#endif
size_t szPreambleLength = strlen(cPreamble);