/* 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
#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>
}
+#if defined ( PLIB_1_2_X )
static float fgTriArea( sgVec3 p0, sgVec3 p1, sgVec3 p2 ) {
/*
From comp.graph.algorithms FAQ
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,
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