Tweaks to PLIB version detection.
This commit is contained in:
parent
07c23f5866
commit
7191e8b810
3 changed files with 7 additions and 8 deletions
|
@ -39,7 +39,7 @@
|
|||
|
||||
|
||||
/* Define to enable plib joystick support (recommended) */
|
||||
#undef PLIB_AUDIO_IS_BROKEN
|
||||
#undef PLIB_1_2_X
|
||||
|
||||
|
||||
/* Define to eliminate all trace of debugging messages such as for a
|
||||
|
|
|
@ -32,11 +32,6 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
// #if defined ( __sun__ )
|
||||
// extern "C" void *memmove(void *, const void *, size_t);
|
||||
// extern "C" void *memset(void *, int, size_t);
|
||||
// #endif
|
||||
|
||||
#include <simgear/compiler.h>
|
||||
#include <simgear/io/sg_binobj.hxx>
|
||||
|
||||
|
@ -247,6 +242,7 @@ ssgBranch *fgGenTile( const string& path, FGTileEntry *t) {
|
|||
}
|
||||
|
||||
|
||||
#if defined ( PLIB_1_2_X )
|
||||
static float fgTriArea( sgVec3 p0, sgVec3 p1, sgVec3 p2 ) {
|
||||
/*
|
||||
From comp.graph.algorithms FAQ
|
||||
|
@ -272,6 +268,9 @@ static float fgTriArea( sgVec3 p0, sgVec3 p1, sgVec3 p2 ) {
|
|||
|
||||
return( sgAbs(sgScalarProductVec3( norm, sum )) * SG_HALF );
|
||||
}
|
||||
#else
|
||||
# define fgTriArea(p0,p1,p2) sgTriArea(p0,p1,p2)
|
||||
#endif
|
||||
|
||||
|
||||
static void random_pt_inside_tri( float *res,
|
||||
|
|
|
@ -146,8 +146,8 @@ bool FGSoundMgr::remove( const string& refname ) {
|
|||
NULL,
|
||||
SL_VOLUME_ENVELOPE );
|
||||
|
||||
#if defined ( PLIB_AUDIO_IS_BROKEN )
|
||||
// if PLIB_AUDIO_IS_BROKEN, we can't reliably remove sounds
|
||||
#if defined ( PLIB_1_2_X )
|
||||
// if PLIB_1_2_X, we can't reliably remove sounds
|
||||
// that are currently being played. :-( So, let's just not
|
||||
// remove them and return false. The effects of this are that
|
||||
// the sound sample will continue to finish playing (or
|
||||
|
|
Loading…
Add table
Reference in a new issue