Re #787 Fixed MinGW et MSVC 2005 compile errors after r5353
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@5356 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 4558a118628c09354849179eed99cc9f8c2ffb51 Former-commit-id: 7fe4a0db1500bf98313cb6966cf4f0f3222a7cbf
This commit is contained in:
parent
8f746677d2
commit
e9158ccb21
5 changed files with 31 additions and 1 deletions
|
@ -115,9 +115,9 @@ bool GfDirExists(const char* pszName)
|
|||
if (pszName[strlen(pszName)-1] == '/' || pszName[strlen(pszName)-1] == '\\')
|
||||
{
|
||||
// Windows stat() does not supports traling (anti-)slashes ... no comment please.
|
||||
// TODO: Take of the possible _multiple_ trailing (anti-)slashes ...
|
||||
char* pszNameNoTrailSlash = strdup(pszName);
|
||||
pszNameNoTrailSlash[strlen(pszName)-1] = 0;
|
||||
GfLogDebug("XXXXXXXXXXX pszNameNoTrailSlash=%s\n", pszNameNoTrailSlash);
|
||||
const bool bAnswer = (stat(pszNameNoTrailSlash, &st) ? false : true);
|
||||
free(pszNameNoTrailSlash);
|
||||
return bAnswer;
|
||||
|
|
24
src/modules/simu/simuv2.1/SOLID-2.0/include/SOLID/types.h
Normal file
24
src/modules/simu/simuv2.1/SOLID-2.0/include/SOLID/types.h
Normal file
|
@ -0,0 +1,24 @@
|
|||
/*
|
||||
* SOLID - Software Library for Interference Detection
|
||||
* Copyright (c) 2001 Dtecta <gino@dtecta.com>
|
||||
*
|
||||
* All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef SOLID_TYPES_H
|
||||
#define SOLID_TYPES_H
|
||||
|
||||
typedef unsigned int DT_Index;
|
||||
typedef unsigned int DT_Count;
|
||||
typedef unsigned int DT_Size;
|
||||
typedef float DT_Scalar;
|
||||
typedef int DT_Bool;
|
||||
|
||||
#define DT_FALSE 0
|
||||
#define DT_TRUE 1
|
||||
|
||||
|
||||
typedef DT_Scalar DT_Vector3[3];
|
||||
typedef DT_Scalar DT_Quaternion[4];
|
||||
|
||||
#endif
|
|
@ -17,6 +17,8 @@
|
|||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include <SOLID/types.h>
|
||||
|
||||
#include "sim.h"
|
||||
|
||||
#define CAR_DAMMAGE 0.1
|
||||
|
|
|
@ -17,6 +17,8 @@
|
|||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include <SOLID/types.h>
|
||||
|
||||
#include "sim.h"
|
||||
|
||||
#define CAR_DAMMAGE 0.1
|
||||
|
|
|
@ -17,6 +17,8 @@
|
|||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include <SOLID/types.h>
|
||||
|
||||
#include "sim.h"
|
||||
#include "timeanalysis.h"
|
||||
|
||||
|
|
Loading…
Reference in a new issue