1
0
Fork 0

Tweaks to PLIB version detection.

This commit is contained in:
curt 2001-03-14 23:38:34 +00:00
parent 07c23f5866
commit 7191e8b810
3 changed files with 7 additions and 8 deletions

View file

@ -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

View file

@ -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,

View file

@ -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